hallvard / plantuml

Embed UML diagrams in files and view them in Eclipse
http://plantuml.sourceforge.net/
209 stars 57 forks source link

Attribute values (in object diagrams) with newline and closing brace results in incorrect source #37

Closed hallvard closed 7 years ago

hallvard commented 7 years ago

If an attribute value contains a newline and a close brace, e.g. "Hello world }", the resulting diagram source code will be incorrect and does not parse. Problematic characters must be properly escaped or replaced/removed. It may also be helpful to shorten long strings with ... to avoid very large boxes in object diagrams.

hallvard commented 7 years ago

The fix replaces special characters by unicode arrows. Also does some truncation now, to avoid very long attribute values.