mirror of
https://github.com/wassname/FanFicFare.git
synced 2026-09-12 12:02:50 +08:00
Kludge fix for uniode in story descs in appengine.
This commit is contained in:
@@ -341,9 +341,13 @@ class EPubFanficWriter(FanficWriter):
|
||||
|
||||
description = self.adapter.getStoryDescription()
|
||||
if hasattr(description, "text"):
|
||||
description = unicode(description.text)
|
||||
else:
|
||||
description = description.text
|
||||
prevalue=description
|
||||
try:
|
||||
description = unicode(description)
|
||||
except:
|
||||
description=prevalue
|
||||
|
||||
if description is not None and len(description) > 0:
|
||||
description = description.replace ('\\\'', '\'').replace('\\\"', '\"')
|
||||
description = removeEntities(description)
|
||||
|
||||
Reference in New Issue
Block a user