From: Radek Czajka Date: Thu, 27 Oct 2011 10:32:56 +0000 (+0200) Subject: epub/mobi fixes X-Git-Tag: 1.7~193 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/f8442984a021793164661a54ec84ae9caaf9862b?ds=sidebyside;hp=--cc epub/mobi fixes --- f8442984a021793164661a54ec84ae9caaf9862b diff --git a/librarian/epub.py b/librarian/epub.py index c5942a2..58d4bc0 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -167,7 +167,7 @@ class TOC(object): def add(self, name, part_href, level=0, is_part=True, index=None): assert level == 0 or index is None if level > 0 and self.children: - return self.children[-1].add(name, "part%d.html" % part_href, level-1, is_part) + return self.children[-1].add(name, part_href, level-1, is_part) else: t = TOC(name) t.part_href = part_href diff --git a/librarian/epub/xsltScheme.xsl b/librarian/epub/xsltScheme.xsl index 25296d3..3ddcf97 100644 --- a/librarian/epub/xsltScheme.xsl +++ b/librarian/epub/xsltScheme.xsl @@ -168,7 +168,7 @@
-
 
+
 
diff --git a/librarian/mobi/style.css b/librarian/mobi/style.css index 3fa7021..99792e5 100755 --- a/librarian/mobi/style.css +++ b/librarian/mobi/style.css @@ -25,13 +25,13 @@ { font-size: 1em; margin: 0; - margin-top: 1.5em; + margin-top: 1em; line-height: 1.5em; } -p +.paragraph { - margin: 0; + margin-top: 0; } /* ======================== */ @@ -166,10 +166,14 @@ div.kwestia margin-top: 0.5em; } -.paragraph +.stanza { - text-align: justify; - margin-top: 1.5em; + margin-bottom: 1em; +} + +.stanza-spacer +{ + display: none; } .motto @@ -274,8 +278,7 @@ em.author-emphasis .person-list em.person { font-style: normal; - font-variant: small-caps; - /*text-transform: uppercase;*/ + text-transform: uppercase; } .info