Currently (with PlantUML 1.2021.7), PlantUML crashes with this code:
@startuml
'If you uncomment this line, then the UnsupportedOperationException on EmbeddedDiagram$Draw.splitInTwo() does not happen
skinparam wrap_width 150
left to right direction
actor User
User --> (1. select template)
User --> (2. write uml diagram)
note right of User
{{
skinparam wrap_width 150
start
while (count < max?)
:count = count + increment;
endwhile
stop
}}
end note
@enduml
It is expected that PlantUML should not crash.