This commit is contained in:
Kovid Goyal 2013-06-13 08:07:12 +05:30
parent c2278d2442
commit 1cf55c1fca

View File

@ -39,7 +39,7 @@ def read_doc_props(raw, mi):
for keywords in XPath('//cp:keywords')(root): for keywords in XPath('//cp:keywords')(root):
if keywords.text and keywords.text.strip(): if keywords.text and keywords.text.strip():
for x in keywords.text.split(): for x in keywords.text.split():
tags.extend(y.strip() for y in x.split(',')) tags.extend(y.strip() for y in x.split(',') if y.strip())
if tags: if tags:
mi.tags = tags mi.tags = tags
authors = XPath('//dc:creator')(root) authors = XPath('//dc:creator')(root)