proc/reformat(text, characters) var/length = length(text) //Store the length of the text. for(var/a = 1, a <= length, a += characters) text = copytext(text, 1, a) + "\n" + copytext(text, a + 1) a ++ length ++
See if that works. text is the text to reformat, and characters is the number of characters to start adding the linebreaks at.