From 6fa467e7998d47e30080783e767f45f98efe20f6 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 22 May 2013 13:05:24 +0530 Subject: [PATCH] ... --- src/calibre/ebooks/docx/block_styles.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/block_styles.py b/src/calibre/ebooks/docx/block_styles.py index 7550f22540..3e009834f0 100644 --- a/src/calibre/ebooks/docx/block_styles.py +++ b/src/calibre/ebooks/docx/block_styles.py @@ -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)