From: Guillaume Pellerin Date: Mon, 15 Jun 2015 07:38:04 +0000 (+0200) Subject: bugfix X-Git-Tag: 1.6a~4^2~29 X-Git-Url: https://git.parisson.com/?a=commitdiff_plain;h=f3bb0351762fc4d6ef91037a429b97ac777dc602;p=telemeta.git bugfix --- 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