Allow line breaks before { and inside !define parameters

0 votes
asked Dec 4, 2017 in Wanted features by hukameniz (4,550 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 (140,090 points)
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!
...