how can splitt a text in variables always after 50 characters?
so is splitt only in a new line after 50 charachters
set length [::textutil::adjust $text -length 50 -strictlength true]
Regards
edit:
input is this text in variable $Plot
LaRochelle, a former pirate captain, is caught by the British. To get his
ship back, he works as a spy against other pirates, first of all Blackbeard
and Providence. He works on some ships, crossing the Caribbean sea, with the
intention
set pieces [regexp -all -inline {.{1,50}} $Plot]
set 0 [lindex [lindex $pieces 0] 0]
set 1 [lindex [lindex $pieces 1] 1]
putnow "PRIVMSG $channel :$0"
output is only:
<testbot> LaRochelle,
<testbot> British.
Unfortunately no longer..