diff options
author | Guido van Rossum <guido@python.org> | 1999-01-04 21:19:09 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1999-01-04 21:19:09 (GMT) |
commit | 1e899cdeaaef273d461b52cec04b554ef8c451b9 (patch) | |
tree | 43d7eba7ec3ab1e67f1b72e1f5607bad8be977f0 /Tools | |
parent | 4eac47cf5032403e0ce24fe3e006cdb61f6b7bc8 (diff) | |
download | cpython-1e899cdeaaef273d461b52cec04b554ef8c451b9.zip cpython-1e899cdeaaef273d461b52cec04b554ef8c451b9.tar.gz cpython-1e899cdeaaef273d461b52cec04b554ef8c451b9.tar.bz2 |
Hm. There was a boundary condition error at the end of the file too.
Diffstat (limited to 'Tools')
-rw-r--r-- | Tools/idle/FormatParagraph.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Tools/idle/FormatParagraph.py b/Tools/idle/FormatParagraph.py index cc1b36a..1d0db12 100644 --- a/Tools/idle/FormatParagraph.py +++ b/Tools/idle/FormatParagraph.py @@ -46,7 +46,7 @@ class FormatParagraph: def find_paragraph(text, mark): lineno, col = map(int, string.split(mark, ".")) line = text.get("%d.0" % lineno, "%d.0 lineend" % lineno) - while is_all_white(line): + while text.compare("%d.0" % lineno, "<", "end") and is_all_white(line): lineno = lineno + 1 line = text.get("%d.0" % lineno, "%d.0 lineend" % lineno) first_lineno = lineno |