diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2008-04-08 08:22:14 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2008-04-08 08:22:14 +0000 |
commit | ce765ab8905c12d58ddbb80bb1373aa4482e81d6 (patch) | |
tree | 9d8141118f80de23be40e7475a8607bb778ee415 /python | |
parent | 4fc30729ab99ed78101c6db9f9cb8ff0252cb25d (diff) | |
download | libxslt-ce765ab8905c12d58ddbb80bb1373aa4482e81d6.tar.gz libxslt-ce765ab8905c12d58ddbb80bb1373aa4482e81d6.tar.bz2 libxslt-ce765ab8905c12d58ddbb80bb1373aa4482e81d6.zip |
fix an infinite loop bug Daniel
* python/generator.py: fix an infinite loop bug
Daniel
svn path=/trunk/; revision=1464
Diffstat (limited to 'python')
-rwxr-xr-x | python/generator.py | 3 |
1 files changed, 3 insertions, 0 deletions
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: |