From: Jan Szejko Date: Fri, 4 Aug 2017 15:16:31 +0000 (+0200) Subject: allow strofa inside table + fix table border in html/epub + fix empty verses in epub X-Git-Tag: 1.7~42 X-Git-Url: https://git.mdrn.pl/librarian.git/commitdiff_plain/c87453a1da79443d74132398e7dd1aaa83140fee?ds=inline allow strofa inside table + fix table border in html/epub + fix empty verses in epub --- diff --git a/librarian/epub.py b/librarian/epub.py index 3e9056c..95e65f1 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -201,6 +201,8 @@ class Stanza(object): if not text: return for i, verse_text in enumerate(re.split(r"/\s*\n", text)): + if not verse_text.strip(): + continue if i: self.open_normal_verse() verse = self.get_open_verse() diff --git a/librarian/epub/style.css b/librarian/epub/style.css index 78ed5bc..e40c754 100644 --- a/librarian/epub/style.css +++ b/librarian/epub/style.css @@ -371,7 +371,8 @@ p.footer { table { border-collapse: collapse; + width: 100%; } -td { +table.border th, table.border td { border: 1px solid black; } diff --git a/librarian/epub/xsltScheme.xsl b/librarian/epub/xsltScheme.xsl index 3b7036c..e04cb9d 100644 --- a/librarian/epub/xsltScheme.xsl +++ b/librarian/epub/xsltScheme.xsl @@ -73,10 +73,6 @@ - - - - @@ -329,9 +325,14 @@ - - -
+ + +
+
+ +
+
+
diff --git a/librarian/fb2/poems.xslt b/librarian/fb2/poems.xslt index 82e164f..257795b 100644 --- a/librarian/fb2/poems.xslt +++ b/librarian/fb2/poems.xslt @@ -29,6 +29,10 @@ + + + + diff --git a/librarian/pdf/wl2tex.xslt b/librarian/pdf/wl2tex.xslt index 4c8be32..85375a2 100644 --- a/librarian/pdf/wl2tex.xslt +++ b/librarian/pdf/wl2tex.xslt @@ -306,6 +306,13 @@ + + + + + + + diff --git a/librarian/xslt/book2html.xslt b/librarian/xslt/book2html.xslt index c4757e1..4b6c72a 100644 --- a/librarian/xslt/book2html.xslt +++ b/librarian/xslt/book2html.xslt @@ -193,6 +193,10 @@

+ + + +
@@ -256,7 +260,14 @@ -
+ + +
+
+ +
+
+