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


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