Can't seem to pass multiline text to preprocessor macro

0 votes
asked Jun 30, 2017 in bug by rd27 (330 points)

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")

1 Answer

0 votes
answered Jan 26 by hukameniz (5,510 points)

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
...