mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-08 02:34:06 -04:00
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:
parent
7b57d6e4d5
commit
082aed8f86
@ -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):
|
||||||
|
Loading…
x
Reference in New Issue
Block a user