Using `autonumber` in a sequence diagram removes support for \l left alignment

0 votes
asked Mar 28 in Question / help by tillig (120 points)

We have a system where we want the messages on a sequence diagram to generally always be centered on the line, but if someone wants to include some code (like JSON response info) in the example, just that section might be left-aligned. This can be done by adding a \l to the end of a line and it works great.

We just discovered that if you add autonumber to a sequence diagram, it ignores the \l alignment and everything becomes centered. Is this a bug or am I doing something wrong?

@startuml Demo
skinparam sequenceMessageAlign center

' If you have autonumber, the \l characters do NOT
' left-align the associated lines. If you remove
' autonumber, the messages are correctly centered
' by default with the \l left-aligning just those
' lines.
autonumber

Client -> Server: ""GET /property""
Server -> Server: Do work
Server -> Client: ""HTTP/1.1 200 OK""\l\l\
""{""\l\
"" "property": "value"""\l\
""}""
@enduml

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.
...