Multiline usecase actor name?

0 votes
asked Nov 4, 2018 in Question / help by lorny
Hi, I'm new to plantuml and tried to creat my first use-case diagram...

But I do have an actor which is {abstract} and I'd love to see his name on two lines.
For the abstract-tag I got a macro which works. But no idea how to create the new line (/n does not work).

This creates an error:

@startuml
!define ABSTRACT {abstract}

actor :ABSTRACT
person:

@enduml

Thanks for any help!

1 Answer

+1 vote
answered Nov 4, 2018 by plantuml (295,000 points)

You can use

@startuml
!define ABSTRACT {abstract}
actor FOO1 as "ABSTRACT
person"
@enduml

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuL9CIKtBp4jLS7GA3WboT0vHK5CsD3AsJamgBYbAJ2u1yKojkO2i_285Dtz_XSHY1IMOMgw2rABY_3mbBeVKl1IWOG00

Is this what you are looking for ?

commented Nov 4, 2018 by lory
thanks a lot, that's exactly what I was looking for :)

then with
skinparam defaultTextAlignment center
I can center it.
...