1
0
mirror of https://gitlab.gnome.org/GNOME/libxslt synced 2025-06-15 10:41:43 +03:00

fix an infinite loop bug Daniel

* python/generator.py: fix an infinite loop bug
Daniel

svn path=/trunk/; revision=1464
This commit is contained in:
Daniel Veillard
2008-04-08 08:22:14 +00:00
parent 4fc30729ab
commit ce765ab890
2 changed files with 7 additions and 0 deletions

View File

@ -673,6 +673,9 @@ def writeDoc(name, args, indent, output):
output.write(indent)
output.write('"""')
while len(val) > 60:
if val[0] == " ":
val = val[1:]
continue
str = val[0:60]
i = string.rfind(str, " ");
if i < 0: