mirror of
https://github.com/python/cpython.git
synced 2025-10-17 20:28:43 +00:00
Hm. There was a boundary condition error at the end of the file too.
This commit is contained in:
parent
4eac47cf50
commit
1e899cdeaa
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue