@startuml !$test1 = "The requested resource exists, but the request could not be processed because of a conflict in the current state of the resource. Another user may be trying to assign it at the same time. Please try again in a few minutes. If the problem persists, please contact Client Services for assistance." !procedure $wrap1($text, $width=40) '<back:black><color:white>%substr("oooo|oooo1oooo|oooo2oooo|oooo3oooo|oooo4oooo|oooo5oooo|oooo6oooo|oooo7oooo|oooo8oooo|oooo9oooo|ooooCoooo|oooo1oooo|oooo2oooo|oooo3oooo|oooo4oooo|oooo5oooo|oooo6oooo|oooo7oooo|oooo8oooo|oooo9oooo|ooooC", 0, $width) !if $width < 2 <back:red><color:white>TOO NARROW! DON'T BE SILLY! !else !$pos = $width - 1 !$cut = "" !while %strlen($text) > $width !while $pos >= 0 && $cut == "" !if %substr($text, $pos, 1) == " " !$cut = $pos !else !$pos = $pos - 1 !endif !endwhile !if $pos < 0 %substr($text, 0, $width - 1)<U+2936> !$text = %substr($text, $width - 1, %strlen($text) - $width +1) !else %substr($text, 0, $cut) !$text = %substr($text, $cut +1, %strlen($text) - $cut) !endif !$pos = $width - 1 !$cut = "" !endwhile $text !endif !endprocedure A -> B : See details in the note. note right <b>This is wrapping at column 100.</b> $wrap1($test1,100) <b>This is wrapping at column 80.</b> $wrap1($test1, 80) <b>This is wrapping at column 40.</b> $wrap1($test1) end note 'B -> A : $wrap1("Using the same procedure in a message between\nparticipants results in a syntax error!", 20) note over A, B #pink Using the same procedure in a message between participants results in a syntax error! See line 23. end note note over A, B <#black,#F8F8F8>| <color:white>COLUMN 1 | <color:white>COLUMN 2 | | $wrap1($test1, 38) | $wrap1($test1, 100) | | $wrap1($test1, 47) | $wrap1($test1, 80) | | $wrap1($test1, 25) | $wrap1($test1) | end note @enduml
Decode URL
Submit
amiga
aws-orange
black-knight
bluegray
blueprint
cerulean-outline
cerulean
crt-amber
crt-green
cyborg-outline
cyborg
hacker
lightgray
mars
materia-outline
materia
metal
mimeograph
minty
plain
reddress-darkblue
reddress-darkgreen
reddress-darkorange
reddress-darkred
reddress-lightblue
reddress-lightgreen
reddress-lightorange
reddress-lightred
sandstone
silver
sketchy-outline
sketchy
spacelab
spacelab-white
superhero-outline
superhero
toy
united
vibrant
Pure Javascript
PNG
SVG
ASCII Art