Is it possibly to automatically wrap text in swimlane boxes, rather than having to use \n manually?

0 votes
asked Jun 25, 2018 in Question / help by J
Is it possible to automatically wrap text in swimlane boxes, rather than having to use \n to manually wrap text?

Thanks.

1 Answer

0 votes
answered Jun 25, 2018 by plantuml (294,960 points)

Thanks for the idea!

With last beta http://beta.plantuml.net/plantuml.jar you can now have:

@startuml
skinparam wrapWidth 100
start
:this is a very long component description;
@enduml
commented Jun 25, 2018 by anonymous
Thanks for getting back so quickly.

Fantastic - works like a treat.
Thank you.
commented Jun 28, 2022 by Túlio Lima
Is this feature already available in official release?
commented Jun 28, 2022 by The-Lu (63,920 points)

Yes, for that now use style (instead of skinparam) and MaximumWidth, as:

@startuml
<style>
element {
  MaximumWidth 100
}
</style>

start
:this is a very long component description;
@enduml

See doc. here:

Regards.

...