nested tags fail

0 votes
asked Jul 19 in Bug by boshka (2,740 points)
edited Jul 19 by boshka

If you nest tags, for example <color:red>red<color:blue>blue</color>red</color>, this will not work.

Could this be fixed? Here is the example:

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuLBCIoqkIKs9BqbCBrQmLL2oISxFoI-oAafDiGDYA2yffpJL3aJOw8C5G58mfX9NIMP9Jge2aZbS3gbvAK330G00

And, if yes, can it be hot-fixed in a version prior to PreprocessorV2 too?

1 Answer

0 votes
answered Jul 20 by albert (2,540 points)

Why not close the tags before opening a new one? like:

@startuml
!nested_tags = "<color:red>red</color><color:blue>blue</color><color:red>red</color>"
title nested_tags
@enduml

commented Jul 20 by boshka (2,740 points)
Because you are not always able to control it. For instance if one variable with tags contains another one with tags. Again, the question is not about workaround, but about the bug with nesting tags
...