Is it possible to use autonumber with format and dotted numbers?

0 votes
asked Oct 10, 2022 in Question / help by Mason Bryant

Hey, I'm trying (and failing miserably) to use Autonumber with dotted numbers and formatting, something like this:

autonumber "<font color='blue'>[ 0.0.0 ]</font>" 
--> [ 1.2.3 ]

Individually, the work as expected:

autonumber "<font color='blue'>[ # ]</font>"
autonumber 0.0.0

Anyone know the secret here? Or is this just not possible?

 

1 Answer

0 votes
answered Oct 10, 2022 by plantuml (295,000 points)

Hello,

Not sure that this is what you are looking for, but you have to use quotes for special characters (like dot).

Example:

@startuml
autonumber "<font color='blue'>[1'.'1'.'#]</font>"
Alice -> Bob: message1
Alice -> Bob: message2
Alice -> Bob: message3

autonumber "<font color='blue'>[1'.'2'.'#]</font>"
Alice -> Bob: message4
@enduml

...