This commit is contained in:
Kovid Goyal 2007-12-27 22:21:38 +00:00
parent e1899e9f1c
commit 4e856a3481

View File

@ -366,6 +366,7 @@ class LRFMetaFile(object):
if len(src) != self.uncompressed_info_size: if len(src) != self.uncompressed_info_size:
raise LRFException("Decompression of document meta info\ raise LRFException("Decompression of document meta info\
yielded unexpected results") yielded unexpected results")
src = src.replace('\x00', '').strip()
return dom.parseString(src) return dom.parseString(src)
except zlib.error: except zlib.error:
raise LRFException("Unable to decompress document meta information") raise LRFException("Unable to decompress document meta information")