participant declarations with a space

0 votes
asked 5 days ago in Bug by andreas.kagedal (280 points)

Hi, I have a question about participant declarations in sequence diagrams.

Both of these work:

participant donald as "Donald\nDuck"

participant "Donald Duck"

But this does no work

participant "Donald Duck" as "Donald\nDuck"

Why? Is it intentional, or a bug?

1 Answer

0 votes
answered 1 day ago by anonymous

Hi,

You can not enclose double sides of "as" with double quotes.

The pattern for using "as" is:

participant  DonaldDuck1Left        as "Donald Duck 1 Right"
participant "Donald Duck 2 Left"    as  DonaldDuck2Right
participant  DonaldDuck3Left        as "Donald\nDuck\n3\nRight"
participant "Donald\nDuck\n4\nLeft" as  DonaldDuck4Right

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

...