File tree Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Expand file tree Collapse file tree 2 files changed +5
-5
lines changed Original file line number Diff line number Diff line change 2
2
3
3
__author__ = 'Grzegorz Makarewicz'
4
4
__license__ = 'MIT'
5
- __version__ = '2.16'
5
+ __version__ = '2.16.1 '
6
6
7
7
__all__ = [__author__ , __license__ , __version__ ]
Original file line number Diff line number Diff line change @@ -2000,7 +2000,7 @@ def _pairs(self, array):
2000
2000
def readNextEndLine (self , stream ):
2001
2001
debug = False
2002
2002
if debug : print (">>readNextEndLine" )
2003
- line = b_ ( "" )
2003
+ line_parts = []
2004
2004
while True :
2005
2005
# Prevent infinite loops in malformed PDFs
2006
2006
if stream .tell () == 0 :
@@ -2027,10 +2027,10 @@ def readNextEndLine(self, stream):
2027
2027
break
2028
2028
else :
2029
2029
if debug : print (" x is neither" )
2030
- line = x + line
2031
- if debug : print ((" RNEL line:" , line ))
2030
+ line_parts .append (x )
2032
2031
if debug : print ("leaving RNEL" )
2033
- return line
2032
+ line_parts .reverse ()
2033
+ return b"" .join (line_parts )
2034
2034
2035
2035
def decrypt (self , password ):
2036
2036
"""
You can’t perform that action at this time.
0 commit comments