Hi Th.,
could it be a solution that you add line breaks to the label and update the format with a helper function like below?
@startuml
left to right direction
!unquoted function $formatBreakLine($type)
!$multiLine = ""
!if (%strpos($type, "\n") >= 0)
!while (%strpos($type, "\n") >= 0)
!$brPos = %strpos($type, "\n")
!$multiLine = $multiLine + %substr($type, 0, $brPos) + '</color></b>\n<b><color:red>'
!$type = %substr($type, $brPos+2)
!endwhile
!endif
!if (%strlen($type)>0)
!$multiLine = $multiLine + $type
!endif
!return $multiLine
!endfunction
cloud "Cloud" as C #pink {
cloud "c1" as c1
cloud "c2" as c2
cloud "c3" as c3
cloud "c4" as c4
}
frame "ff" as ff {
frame "f" as f {
[f1]
[f2]
[f3]
}
}
node "NN" as N {
node "NN" as N1
node "NN" as N2
}
f2 --> C : 2-C
C --> f3 : C-3
f2 --> f3 : 2-3
f3 --> N : <b><color:red>$formatBreakLine(LongLong\nLongLong\nLongLongL\nongLongLo\nngLongText-f3->Node)
f2 --> N : 2-N
@enduml
Best regards,
Helmut