X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/1fdd33e6b409ee5c034915d121f773f007b95b9f..245ee64cc85bfc2c1a27c30139d9e7c1268168d9:/librarian/epub.py?ds=sidebyside 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")