From e444f27de8201a7e07a3c8fe87d27ea366781289 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sat, 15 Jun 2013 17:15:16 +0530 Subject: [PATCH] Remove incorrect rendering of separator field chars Unconditionally rendering the separator is wrong, for example, for the TOC field it causes an extra space at the start of the first entry. In any case, many common fields are webHidden, so they dont display anyway. --- src/calibre/ebooks/docx/to_html.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index 23191864ff..6fd0026874 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -440,8 +440,6 @@ 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))