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,960 points)

1 Answer

0 votes
answered Jan 5, 2019 by plantuml (295,000 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, 2019 by boshka (3,960 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.