off by one
This commit is contained in:
parent
cd300b3883
commit
a414ca491d
1 changed files with 28 additions and 28 deletions
|
@ -85,7 +85,7 @@ def wrapString(string, length, separator, balance):
|
||||||
lines.append(word + ' ')
|
lines.append(word + ' ')
|
||||||
else:
|
else:
|
||||||
# word is longer than line
|
# 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]
|
lines[len(lines) - 1] += word[0:position]
|
||||||
for i in range(position, len(word), length):
|
for i in range(position, len(word), length):
|
||||||
lines.append(word[i:i+length]);
|
lines.append(word[i:i+length]);
|
||||||
|
|
Loading…
Reference in a new issue