DOCX: Insert space for separator fldChar

This commit is contained in:
Kovid Goyal 2013-06-05 10:01:39 +05:30
parent bc3ecb9521
commit 925726e166

View File

@ -440,6 +440,8 @@ class Convert(object):
l.set('class', 'noteref') l.set('class', 'noteref')
text.add_elem(l) text.add_elem(l)
ans.append(text.elem) ans.append(text.elem)
elif is_tag(child, 'w:fldChar') and get(child, 'w:fldCharType') == 'separate':
text.buf.append('\xa0')
if text.buf: if text.buf:
setattr(text.elem, text.attr, ''.join(text.buf)) setattr(text.elem, text.attr, ''.join(text.buf))