DOCX Input: Fix extra border for text that has no border style specified

This commit is contained in:
Kovid Goyal 2015-03-31 17:33:21 +05:30
parent 6d03706aa3
commit 8e864305f3

View File

@ -17,7 +17,7 @@ def read_text_border(parent, dest):
elems = XPath('./w:bdr')(parent) elems = XPath('./w:bdr')(parent)
if elems and elems[0].attrib: if elems and elems[0].attrib:
border_color = simple_color('auto') border_color = simple_color('auto')
border_style = 'solid' border_style = 'none'
border_width = 1 border_width = 1
for elem in elems: for elem in elems:
color = get(elem, 'w:color') color = get(elem, 'w:color')