This commit is contained in:
Kovid Goyal 2014-05-20 22:35:58 +05:30
parent b37e932668
commit 2a3071b8ea

View File

@ -55,7 +55,7 @@ def read_doc_props(raw, mi):
if desc: if desc:
raw = etree.tostring(desc[0], method='text', encoding=unicode) raw = etree.tostring(desc[0], method='text', encoding=unicode)
raw = raw.replace('_x000d_', '') # Word 2007 mangles newlines in the summary raw = raw.replace('_x000d_', '') # Word 2007 mangles newlines in the summary
mi.comments = raw mi.comments = raw.strip()
langs = [] langs = []
for lang in XPath('//dc:language')(root): for lang in XPath('//dc:language')(root):