Empty notes. Shouldn't those be NOT rendered?

+1 vote
asked Jul 24 in Bug by boshka (2,740 points)
commented Jul 25 by albert (2,540 points)
The user requests here explicitly a note, maybe just to have a attention signal for future use, so no I do think it should be shown / redered.
commented Jul 25 by boshka (2,740 points)
edited Jul 25 by boshka
makes sense, however,

in such case i would want an ability to hide empty notes, say, by a skinparam

I'll explain:

say, you have a function

!function note(text)

note right: text

!endfunction

Sometimes the text passed to the note() may be empty, so, i'd like that in this case the note would NOT appear
commented Jul 25 by albert (2,540 points)
I don't know whether the functionality exists / how it is formulated in plantuml but wouls something like:

!function note(text)

!if (text != "") then

  note right: text

!endif

!endfunction
commented Jul 25 by boshka (2,740 points)

i guess what you are proposing is not possible in the old preprocessor (but I'd like to have it for the old preprocessor if possible).

For preprocessorV2 it looks it works fine:

http://www.plantuml.com/plantuml/uml/SoWkIImgAStDuL9CAyrBBidCprF8ooz9rIX9hIZHv5BCJ5C0CnKKRHMKb3IvG78AHPdf6ILM864knTISubGWcPUIcGQcOAPmSINgsYLPvHQd6u8rQIW1IONKt8AIIYLDJ4cGc0DGEz0b0000

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.
...