New line in table built with variables is ignored

0 votes
asked Oct 2, 2019 in Bug by Jesper

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:

!global $table = "|= Field1 |= Field 2 |"
!function $row($value1, $value2)
%set_variable_value("$table", %get_variable_value("$table") + " \n | " + $value1 + " | " + $value2 + " |")

$row("row 1", "2")

end title

However the result is one row with 5 cells

I had expected that the "\n" would create a new line

When writing the table by hand it works as expected:

Your answer

Your name to display (optional):
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:

[Antispam2 Feature: please please wait 1 or 2 minutes (this message will disappear) before pressing the button otherwise it will fail](--------)
To avoid this verification in future, please log in or register.