X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/1fdd33e6b409ee5c034915d121f773f007b95b9f..3cae7a60cf91b6e2b84628c5f3b4b2df77eda5d6:/librarian/epub.py diff --git a/librarian/epub.py b/librarian/epub.py index 5f017d4..333b56f 100644 --- a/librarian/epub.py +++ b/librarian/epub.py @@ -190,7 +190,7 @@ class Stanza(object): tail = self.stanza.tail self.stanza.clear() self.stanza.tail = tail - self.stanza.extend(self.verses) + self.stanza.extend(verse for verse in self.verses if verse.text or len(verse) > 0) def open_normal_verse(self): self.open_verse = self.stanza.makeelement("wers_normalny")