Allow line breaks before { and inside !define parameters

0 votes
asked Dec 4, 2017 in Won't implement by Anthony-Gaudino (5,720 points)

This code causes syntax error because the { is on another line:

class Foo
{
    #BAR
}

This code also causes error because the parameters continue in another line:

!definelong USEFUL(Foo,   Bar,
                   House, Cat)
    SOMETHINGUSEFULL...
!enddefinelong

 
USEFUL(Foo,   Bar,
       House, Cat)

1 Answer

0 votes
answered Dec 4, 2017 by plantuml (294,960 points)
selected Feb 18, 2018 by Anthony-Gaudino
 
Best answer
Unfortunately, PlantUML is very sensitive about line break.

It's not easy to change this behavior, so the better option is to put back your two lines on a single line.

Sorry about that!
...