Escape Square Brackets in a label

0 votes
asked Aug 7 by costateixeira (250 points)
Hi 
How can I escape a closing Square Bracket in the label of a connection? see below
 
 
@startuml
Sender1  -up-> [↑ Curly works\n{M-3}] Receiver1
Sender2 -up-> [↑ Parenthesis\too\n(M1)] Receiver2
Sender3  -up-> [ ~[Square\nBrackets\ndoesn't ~] Receiver3
@enduml
 
 

1 Answer

0 votes
answered Aug 8 by Serge Wenger Work (4,850 points)
selected Aug 8 by costateixeira
 
Best answer

Hello,

ou can escape char:

@startuml
Sender1  -up-> [Curly works\n{M-3}] Receiver1
Sender2 -up-> [Parenthesis\ntoo\n(M1)] Receiver2
Sender3  -up-> [ [Square\nBrackets\ndoesn't ]] Receiver3
@enduml
...