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

Commit

Permalink
Adding chapter_end style
Browse files Browse the repository at this point in the history
  • Loading branch information
rupor-github committed Aug 8, 2017
1 parent 674ff24 commit 00d6b58
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 1 deletion.
1 change: 1 addition & 0 deletions modules/fb2html.py
Expand Up @@ -862,6 +862,7 @@ def parse_section(self, elem):
vignette = self.get_vignette(level, 'chapterEnd')
if vignette:
self.buff.append('<p class="vignette_chapter_end"><img src="vignettes/{0}" /></p>'.format(vignette))
self.buff.append('<span class="chapter_end"/>')

self.current_header_level = max(0, self.current_header_level - 1)

Expand Down
6 changes: 6 additions & 0 deletions profiles/default.css
Expand Up @@ -291,3 +291,9 @@ p.dropcaps {
margin-top: 2em;
margin-bottom: 0;
}

.chapter_end {
page-break-before: avoid;
page-break-inside: avoid;
page-break-after: always
}
2 changes: 1 addition & 1 deletion version.py
Expand Up @@ -4,5 +4,5 @@

WINDOWS = platform.system().lower() == "windows"

VERSION = u'3.6.32'
VERSION = u'3.6.33'

0 comments on commit 00d6b58

Please sign in to comment.