Intermittent usage of \n and \\n

0 votes
asked Nov 19, 2019 in Bug by boshka (3,040 points)
edited Nov 27, 2019 by boshka

Could you check why this requires to use "\n" (single backslash for the line feed):


while this requires double backslash for the line feed:


(the only thing that changed is that in the later case i have removed the inner component)

The same issue observed intermittently for different types of components and depending on some other strange things as whether those contain links within the name or not, whether those contain inner elements or not, etc.

The problem is that there is no consistent rule on whether one must use "\n" or "\\n" since plantuml obviously behaves "unpredictably" differently. For instance, the example 1 above fails if you use "\\n": 

while example 2 works ok with "\\n" and vice versa.

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.