fix eol check
This commit is contained in:
parent
ee0a820bfa
commit
7ec3e8b26f
1 changed files with 3 additions and 3 deletions
|
@ -1933,13 +1933,13 @@ class PdfFileReader(object):
|
||||||
while eol+1 < len(x) and x[eol+1] in (b_('\n'), b_('\r')):
|
while eol+1 < len(x) and x[eol+1] in (b_('\n'), b_('\r')):
|
||||||
eol += 1
|
eol += 1
|
||||||
line = x[eol+1:] + line
|
line = x[eol+1:] + line
|
||||||
while x[eol] in (b_('\n'), b_('\r')):
|
while x[eol:eol+1] in (b_('\n'), b_('\r')):
|
||||||
eol -= 1
|
eol -= 1
|
||||||
stream.seek(-step+eol-2, 1)
|
stream.seek(-step+eol, 1)
|
||||||
break
|
break
|
||||||
else:
|
else:
|
||||||
line = x + line
|
line = x + line
|
||||||
stream.seek(-step-2, 1)
|
stream.seek(-step, 1)
|
||||||
if debug: print("leaving RNEL")
|
if debug: print("leaving RNEL")
|
||||||
return line
|
return line
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue