prepocessing directives do not work in embedded notation (single line note), while it works fine within multiline note

0 votes
asked Dec 27, 2018 in Bug by boshka (3,190 points)

1 Answer

0 votes
answered Jan 5 by plantuml (195,880 points)
Sorry, but !define is processed by the preprocessor and MUST be at the beginning of a line.

So we cannot fix this one
commented Jan 9 by boshka (3,190 points)
I would doubt that this cannot be fixed. In the string

"\n!define myVar test\n"

technically !define is at the begining of a line. So, might it be a defect of the preprocessor then? Or you should convert such single line note to multiline before passing it further.