]> git.parisson.com Git - telemeta.git/commitdiff
bugfix
authorGuillaume Pellerin <yomguy@parisson.com>
Mon, 15 Jun 2015 07:38:04 +0000 (09:38 +0200)
committerGuillaume Pellerin <yomguy@parisson.com>
Mon, 15 Jun 2015 07:38:04 +0000 (09:38 +0200)
telemeta/views/epub.py

index 3161d698491543728abfb93187b6486f0ac90843..34390b76ce89d46b73b158eaa7f6d38696b4baef 100644 (file)
@@ -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