From ce765ab8905c12d58ddbb80bb1373aa4482e81d6 Mon Sep 17 00:00:00 2001 From: Daniel Veillard Date: Tue, 8 Apr 2008 08:22:14 +0000 Subject: fix an infinite loop bug Daniel * python/generator.py: fix an infinite loop bug Daniel svn path=/trunk/; revision=1464 --- ChangeLog | 4 ++++ python/generator.py | 3 +++ 2 files changed, 7 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1576e230..a43f404c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +Tue Apr 8 10:19:01 CEST 2008 Daniel Veillard + + * python/generator.py: fix an infinite loop bug + Thu Apr 3 09:32:49 CEST 2008 Daniel Veillard * libxslt/xsltutils.c: avoid a scary realloc() loop should fix #520383 diff --git a/python/generator.py b/python/generator.py index c13d6066..45f00b6e 100755 --- a/python/generator.py +++ b/python/generator.py @@ -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: -- cgit v1.2.3