fix eol check

This commit is contained in:
j 2016-02-11 16:18:23 +05:30
parent ee0a820bfa
commit 7ec3e8b26f

View file

@ -1933,13 +1933,13 @@ class PdfFileReader(object):
while eol+1 < len(x) and x[eol+1] in (b_('\n'), b_('\r')):
eol += 1
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
stream.seek(-step+eol-2, 1)
stream.seek(-step+eol, 1)
break
else:
line = x + line
stream.seek(-step-2, 1)
stream.seek(-step, 1)
if debug: print("leaving RNEL")
return line