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)
This commit is contained in:
Kovid Goyal 2013-06-12 08:39:11 +05:30
parent 7b57d6e4d5
commit 082aed8f86

View File

@ -104,7 +104,7 @@ def read_underline(parent, dest):
for col in XPath('./w:u[@w:val]')(parent): for col in XPath('./w:u[@w:val]')(parent):
val = get(col, 'w:val') val = get(col, 'w:val')
if val: if val:
ans = 'underline' ans = val if val == 'none' else 'underline'
setattr(dest, 'text_decoration', ans) setattr(dest, 'text_decoration', ans)
def read_vert_align(parent, dest): def read_vert_align(parent, dest):