From 07802d913c38de019e1ca7490d62ded56c6a8a32 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 11 Feb 2014 08:12:45 +0530 Subject: [PATCH] EPUB Output: Do not override any declared text-decoration CSS for tags when auto-converting them to (auto-conversion is needed to comply with the epub spec). Fixes #1278670 [strikeout and double underline from html to epub](https://bugs.launchpad.net/calibre/+bug/1278670) --- src/calibre/ebooks/conversion/plugins/epub_output.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/calibre/ebooks/conversion/plugins/epub_output.py b/src/calibre/ebooks/conversion/plugins/epub_output.py index bb59ee71dc..7434af7415 100644 --- a/src/calibre/ebooks/conversion/plugins/epub_output.py +++ b/src/calibre/ebooks/conversion/plugins/epub_output.py @@ -152,7 +152,6 @@ class EPUBOutput(OutputFormatPlugin): continue for u in XPath('//h:u')(root): u.tag = 'span' - u.set('style', 'text-decoration:underline') seen_ids, seen_names = set(), set() for x in XPath('//*[@id or @name]')(root):