This commit is contained in:
Kovid Goyal 2015-03-17 11:13:33 +05:30
parent a436fc5fc3
commit 142c1e84cf

View File

@ -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