mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
DOCX: Insert space for separator fldChar
This commit is contained in:
parent
bc3ecb9521
commit
925726e166
@ -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))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user