From 925726e166dec7615f45d333ff812b3ec14d8785 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Wed, 5 Jun 2013 10:01:39 +0530 Subject: [PATCH] DOCX: Insert space for separator fldChar --- src/calibre/ebooks/docx/to_html.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index a294c0c08d..172af69601 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -440,6 +440,8 @@ class Convert(object): l.set('class', 'noteref') text.add_elem(l) ans.append(text.elem) + elif is_tag(child, 'w:fldChar') and get(child, 'w:fldCharType') == 'separate': + text.buf.append('\xa0') if text.buf: setattr(text.elem, text.attr, ''.join(text.buf))