Login
Remember
Register
PlantUML Q&A
All Activity
Questions
Hot!
Unanswered
Tags
Users
Ask a Question
Ask a Question
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)
!define does not work in single line note (in fact, i see the same issue with !include too):
http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuKhEpot8pqlDAr58LAZcgaNY9u7vYRfsILnv-IMf2aMPwHab2lbf2abM2jNLCNcAAQbfcNcf2hcLOOb52YMfnIKnURMrN0wfUIb0Wm40
while those work fine in multiline note:
http://www.plantuml.com/plantuml/uml/JOx13SCW34Nldk9tW2pGGvGfSeTW6YJ05N4KLOZT6ygbFbX-UjRNNmurHSyKQPFqbinPOL2f_R7ziPbcIrcKKS9hLuY79G2r4ley7FkG6UcpcZBsQkB9msxJx9uu935yb0jNq7qyTTyQSNRewRJSrztd2m00
embed
preprocessing
Your comment on this question:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Your answer
Your name to display (optional):
Email me at this address if my answer is selected or commented on:
Email me if my answer is selected or commented on
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
.
1 Answer
0
votes
answered
Jan 5, 2019
by
plantuml
(
296,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.
Your comment on this answer:
Your name to display (optional):
Email me at this address if a comment is added after mine:
Email me if a comment is added after mine
Privacy: Your email address will only be used for sending these notifications.
Anti-spam verification:
To avoid this verification in future, please
log in
or
register
.
Related questions
note does not work inside class, while works fine within component
Embedded code is not parsed within table cells
skinparam handwritten true is not inherited within embedded diagram
skinparam noteBackgroundColor is not honored within embedded diagram
Cannot escape quotes in a note with embedded diagram
All categories
Question / help
(1,622)
Bug
(1,708)
Wanted features
(1,458)
Closed question / help
(89)
Closed bug
(53)
Closed feature request
(130)
Won't fix
(3)
Won't implement
(13)
Can't help
(9)
To be deleted
(10)
To be sorted
(430)
...