From d3c67c72fd8f4abf39dc0c024fa01445b968a3f1 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Thu, 8 May 2014 20:58:57 +0530 Subject: [PATCH] DOCX Input: Fix error when converting document with nested frames. Fixes #1317543 [Conversion of a particular DOCX file](https://bugs.launchpad.net/calibre/+bug/1317543) --- src/calibre/ebooks/docx/to_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index 05f1f9a95b..0bb67ad425 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -629,7 +629,7 @@ class Convert(object): if last_run[-1][1] == style: last_run.append((html_obj, style)) else: - self.framed.append((html_obj, style)) + self.framed[-1].append((html_obj, style)) else: last_run.append((html_obj, style))