From 466d5f4ee3e04433bb5504337c55f3bf4bc8c0a3 Mon Sep 17 00:00:00 2001 From: retiefjimm Date: Wed, 6 Oct 2010 14:31:21 -0500 Subject: [PATCH] Remove Entities, fix bar ampersands in story & author names. --- output.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/output.py b/output.py index 95656e4a..70a4cf01 100644 --- a/output.py +++ b/output.py @@ -134,11 +134,11 @@ class EPubFanficWriter(FanficWriter): def __init__(self, base, name, author, inmemory=False, compress=True): self.basePath = base self.name = re.sub('&\#[0-9]+;', '_', name.replace(" ", "_").replace(":","_")) - self.storyTitle = name + self.storyTitle = self._removeEntities(name) self.directory = self.basePath + '/' + re.sub('[^a-zA-Z0-9_\'-]+','',self.name) self.inmemory = inmemory - self.authorName = author + self.authorName = self._removeEntities(author) self.files = {} self.chapters = []