I'll be the third person to have a crack at this. :) If you've got a solid string of numbers I suspect autowrap might not work. I guess you could just take the modulus if all else fails:
var array = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9,
0, 1, 2, 3, 4, 5, 6, 7, 8, 9]
var line_length = 7
var string = ""
for item in array.size():
if item and not item % line_length:
string += "\n"
string += str(array[item])
printt(string)
Outputs:
0123456
7890123
4567890
1234567
89
Or, you could loop the string rather than the array. Anyway, you get the idea hopefully.