I am trying to built a table by using functions and variables (and use this information in the diagram). I have however experienced that I cannot and a new row in the table with this method.
I have this:
@startuml
!global $table = "|= Field1 |= Field 2 |"
!function $row($value1, $value2)
%set_variable_value("$table", %get_variable_value("$table") + " \n | " + $value1 + " | " + $value2 + " |")
!endfunction
$row("row 1", "2")
title
$table
end title
@enduml
However the result is one row with 5 cells
I had expected that the "\n" would create a new line
http://www.plantuml.com/plantuml/uml/TP2n2eCm48RtUuhVGq6fYza5fpv5GM9D9P16q6WN7xxNf4ANBk7Zo_5nNBS6lOJjwH3quCokbvMooSs3TiYZGWi-MbojSME3aw1mC6MFpT-3dJtoPNwL-QxTPfeQ2LH5nMf2Br7xAVNHbfowNAEO_lzMk81nypZ0WjzqbBz69SCLPSQFvpf4SH-M1mtNO2K356nmXbAVP1f9K2Si5tW3
When writing the table by hand it works as expected: http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuIh9BCb9vL9GgB5LSCjCpKanXBCKZ1HgG18AHVdb2eOG6YoMcfUY0D7c06G23G40