From f3bb0351762fc4d6ef91037a429b97ac777dc602 Mon Sep 17 00:00:00 2001 From: Guillaume Pellerin Date: Mon, 15 Jun 2015 09:38:04 +0200 Subject: [PATCH] bugfix --- telemeta/views/epub.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/telemeta/views/epub.py b/telemeta/views/epub.py index 3161d698..34390b76 100644 --- a/telemeta/views/epub.py +++ b/telemeta/views/epub.py @@ -60,6 +60,7 @@ class BaseEpubMixin(TelemetaBaseMixin): if not collection: self.filename = corpus.code self.book.set_title(corpus.title) + full_title = corpus.title else: self.filename = collection.code short_title = collection.title.split(' ') @@ -68,8 +69,8 @@ class BaseEpubMixin(TelemetaBaseMixin): else: short_title = 'Intro' self.book.set_title(corpus.title[:15] + '... ' + short_title) + full_title = corpus.title + ' - ' + collection.title - full_title = corpus.title + ' - ' + collection.title self.path = self.cache_data.dir + os.sep + self.filename + '.epub' # add metadata -- 2.39.5