mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
...
This commit is contained in:
parent
a436fc5fc3
commit
142c1e84cf
@ -15,7 +15,7 @@ from calibre.ebooks.docx.names import XPath, get
|
|||||||
def read_text_border(parent, dest):
|
def read_text_border(parent, dest):
|
||||||
border_color = border_style = border_width = padding = inherit
|
border_color = border_style = border_width = padding = inherit
|
||||||
elems = XPath('./w:bdr')(parent)
|
elems = XPath('./w:bdr')(parent)
|
||||||
if elems:
|
if elems and elems[0].attrib:
|
||||||
border_color = simple_color('auto')
|
border_color = simple_color('auto')
|
||||||
border_style = 'solid'
|
border_style = 'solid'
|
||||||
border_width = 1
|
border_width = 1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user