diff --git a/src/calibre/ebooks/oeb/polish/kepubify.py b/src/calibre/ebooks/oeb/polish/kepubify.py index 311d40c996..3537b78e22 100644 --- a/src/calibre/ebooks/oeb/polish/kepubify.py +++ b/src/calibre/ebooks/oeb/polish/kepubify.py @@ -28,7 +28,7 @@ KOBO_STYLE_HACKS = 'kobostylehacks' OUTER_DIV_ID = 'book-columns' INNER_DIV_ID = 'book-inner' SKIPPED_TAGS = frozenset(( - 'script', 'style', 'atom', 'pre', 'audio', 'video', 'svg', 'math' + '', 'script', 'style', 'atom', 'pre', 'audio', 'video', 'svg', 'math' )) BLOCK_TAGS = frozenset(( 'p', 'ol', 'ul', 'table', 'h1', 'h2', 'h3', 'h4', 'h5', 'h6', diff --git a/src/calibre/ebooks/oeb/polish/tests/kepubify.py b/src/calibre/ebooks/oeb/polish/tests/kepubify.py index 65b980ad53..86ffb4d620 100644 --- a/src/calibre/ebooks/oeb/polish/tests/kepubify.py +++ b/src/calibre/ebooks/oeb/polish/tests/kepubify.py @@ -26,15 +26,30 @@ div#book-inner { margin-top: 0; margin-bottom: 0; }
An image'
- 'with tail
An imagewith tail
without':
+ '
An image'
+ 'with tail'
+ '
without
A commentwith tail' + '
A commentwithout tail': + '
A commentwith tail
' + 'A commentwithout tail
', # nested block tags + 'with nested block
tail1with nested block
' + ' tail1