Skip to content
This repository has been archived by the owner on Mar 15, 2020. It is now read-only.

Commit

Permalink
Correcting generated first book page - section without title
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Aug 8, 2017
1 parent baba078 commit 51bf32c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion modules/fb2html.py
Original file line number Diff line number Diff line change
Expand Up @@ -823,7 +823,11 @@ def parse_section(self, elem):
if vignette:
self.buff.append('<div class="vignette_title_before"><img src="vignettes/{0}" /></div>'.format(vignette))

self.buff.append('<div class ="h0"><p class="title">{0}</p><p class="title">{1}<span class="strong"></span></p></div>'.format(self.book_author, self.book_title))
self.buff.append('<div class ="h0">')
if self.book_author:
self.buff.append('<p class="title">{0}</p>'.format(self.book_author))
self.buff.append('<p class="title">{0}</p>'.format(self.book_title))
self.buff.append('</div>')

vignette = self.get_vignette('h0', 'afterTitle')
if vignette:
Expand Down

0 comments on commit 51bf32c

Please sign in to comment.