Plantuml doesn't seem to accept multiline text as macro arguments. So in the following text the last TestFolder line causes an error. Is theer a trick I am missing? Thanks!
!definelong TestFolder(TEXT) folder test2 [ TEXT ] !enddefinelong TestFolder("testtext") TestFolder("test text")
(--------)
You can't have line breaks like this on the macros.
You may use something like this instead:
@startuml !definelong TestFolder(name, TEXT) folder name [ TEXT ] !enddefinelong TestFolder(a, "testtext") TestFolder(b, "test\ntext") @enduml
This solution doesn't work with notes as \n is not parsed in notes.
@startuml!definelong CustomNote(text)notetextend note!enddefinelongCustomNote("first line\nsecond line")@enduml
@startuml!definelong CustomNote(text)notetextend note!enddefinelong
CustomNote("first line\nsecond line")
@enduml
The note has one line:
first line\nsecond line
What I want is:
first linesecond line
How can I achieve this?