From 082aed8f8632ad457d34705b69b2da4f6846b8f7 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 12 Jun 2013 08:39:11 +0530 Subject: [PATCH] DOCX Input: Fix some text being underlined incorrectly The "none" underline style was being translated incorrectly. Fixes #1189311 [Private bug](https://bugs.launchpad.net/calibre/+bug/1189311) --- src/calibre/ebooks/docx/char_styles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/char_styles.py b/src/calibre/ebooks/docx/char_styles.py index e65a551ac0..77a131da9c 100644 --- a/src/calibre/ebooks/docx/char_styles.py +++ b/src/calibre/ebooks/docx/char_styles.py @@ -104,7 +104,7 @@ def read_underline(parent, dest): for col in XPath('./w:u[@w:val]')(parent): val = get(col, 'w:val') if val: - ans = 'underline' + ans = val if val == 'none' else 'underline' setattr(dest, 'text_decoration', ans) def read_vert_align(parent, dest):