Fix #5855 (Import of ePub book with multiple entries on a single Subject Meta line needs cleanup)

This commit is contained in:
Kovid Goyal 2010-06-17 08:40:20 -06:00
parent 534847a80a
commit f712c3cc3b

View File

@ -736,7 +736,9 @@ class OPF(object):
def fget(self): def fget(self):
ans = [] ans = []
for tag in self.tags_path(self.metadata): for tag in self.tags_path(self.metadata):
ans.append(self.get_text(tag)) text = self.get_text(tag)
if text and text.strip():
ans.extend([x.strip() for x in text.split(',')])
return ans return ans
def fset(self, val): def fset(self, val):