minor bugfix. thanks to Hiroshi Manabe.

pull/1/head
Yusuke Shinyama 2011-02-28 19:50:07 +09:00
parent f22b056454
commit dfd621b98c
1 changed files with 1 additions and 1 deletions

View File

@ -263,7 +263,7 @@ class PDFContentParser(PSStackParser):
data += self.buf[self.charpos:]
self.charpos = len(self.buf)
data = data[:-(len(target)+1)] # strip the last part
data = re.sub(r'(\x0d\x0a|[\x0d\x0a])', '', data)
data = re.sub(r'(\x0d\x0a|[\x0d\x0a])$', '', data)
return (pos, data)
def flush(self):