Breaking lines after a specified number of characters or in place of a whitespace

0 votes
asked Oct 5 in Wanted features by wro02922 (760 points)

Hello,

After a certain number of characters in the sequence diagram and activity diagram, can you introduce a line break? This will avoid manual line breaksn '\n'. The maxAsciiMessageLength parameter exists - it just doesn't work in the sequence diagram and activity diagram. Of course, if I could ask for more, it would be nice to implement such a split in place of the whitespace closest to the position indicated by maxAsciiMessageLength. Of course, if there is no whitespace, the line break should be in the position indicated by maxAsciiMessageLength.

P.S.

This request is a refresh of the thread https://forum.plantuml.net/8942/maxasciimessagelength-dosnt-work?show=8942#q8942

1 Answer

0 votes
answered Oct 6 by plantuml (232,260 points)
selected Oct 6 by wro02922
 
Best answer

All those settings are not very consistent, and we should probably implement something easier to understand, but there is a maxMessageSize setting :

@startuml
skinparam maxMessageSize 50
participant a
participant b
a -> b :this is a very long message on several words
a -> b :0123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789
a -> b :return 0123456789012345678901234567890123456789012345678\n901234567890123456789012345678901234567890123456789
@enduml
commented Oct 6 by wro02922 (760 points)
Many thanks.
...