This commit is contained in:
Kovid Goyal 2013-05-22 13:05:24 +05:30
parent 3e715dd604
commit 6fa467e799

View File

@ -74,7 +74,7 @@ def read_border(parent, dest):
for border in XPath('./w:pBdr')(parent):
for edge in ('left', 'top', 'right', 'bottom'):
for elem in XPath('./w:%s' % edge):
for elem in XPath('./w:%s' % edge)(border):
color = get(elem, 'w:color')
if color is not None:
vals['border_%s_color' % edge] = simple_color(color)