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.
This commit is contained in:
Kovid Goyal 2013-06-15 17:15:16 +05:30
parent e282364459
commit e444f27de8

View File

@ -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))