off by one

This commit is contained in:
Rolux 2008-07-06 12:21:55 +02:00
parent cd300b3883
commit a414ca491d

View file

@ -85,7 +85,7 @@ def wrapString(string, length, separator, balance):
lines.append(word + ' ')
else:
# word is longer than line
position = length - len(lines[len(lines) - 1]) + 1
position = length - len(lines[len(lines) - 1])
lines[len(lines) - 1] += word[0:position]
for i in range(position, len(word), length):
lines.append(word[i:i+length]);