Commit 1e899cde authored by Guido van Rossum's avatar Guido van Rossum

Hm. There was a boundary condition error at the end of the file too.

parent 4eac47cf
...@@ -46,7 +46,7 @@ class FormatParagraph: ...@@ -46,7 +46,7 @@ class FormatParagraph:
def find_paragraph(text, mark): def find_paragraph(text, mark):
lineno, col = map(int, string.split(mark, ".")) lineno, col = map(int, string.split(mark, "."))
line = text.get("%d.0" % lineno, "%d.0 lineend" % lineno) 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 lineno = lineno + 1
line = text.get("%d.0" % lineno, "%d.0 lineend" % lineno) line = text.get("%d.0" % lineno, "%d.0 lineend" % lineno)
first_lineno = lineno first_lineno = lineno
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment