Breaking long lines using backslashes breaks !includesub

0 votes
asked Oct 28 in Bug by 3dSquare (140 points)

Hi,

I have a C4-PlantUML based diagram where I break long statements into multiple lines.

@startuml long-lines

!startsub SUB_SECTION

!include <C4/C4_Container>

Container(some_container, Some Container, $descr=This is an important container with a long description.)

HIDE_STEREOTYPE()

!endsub

@enduml

@startuml long-lines-include

!includesub diagrams/wip/bug-report-broken-includesub.puml!SUB_SECTION

@enduml

Modifying the previous example to break the description into a new line using a backslash, works for the diagram "long-lines-broken" itself but when including the section using !includesub an error occurs:

@startuml long-lines-with-break

!startsub SUB_SECTION_WITH_BREAK

!include <C4/C4_Container>

Container(some_container, Some Container, \

$descr=This is an important container with a long description.)

HIDE_STEREOTYPE()

!endsub

@enduml

@startuml long-lines-include-with-break

!includesub diagrams/wip/bug-report-broken-includesub.puml!SUB_SECTION_WITH_BREAK

@enduml

Is there an issue with the preprocessor?

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