Error if not at least a newline in class, namespace, package

0 votes
asked Oct 2 in Bug by puter (120 points)

Plantuml marks these empty items as an error when there is not at least a new line.

I have only tried for class diagram items, unsure if same applies to other items.

All of the below fail:

    package foo {}
    namespace bar {}
    class qux {}

Whereas all of the following are valid

    package foo {
    }
    namespace bar  {
    }
    class qux {
    }

FWIW, I wouldn't expect any requirement on an empty element, especially white-space requirement .

Took me a while to figure out why I was seeing an error!

1 Answer

0 votes
answered Oct 3 by plantuml (205,520 points)
Thanks for the report.

This is fixed in last beta http://beta.plantuml.net/plantuml.jar

Tell us if it's not working for you !
...