DOCX Input: Fix non-breaking hyphens being ignored

This commit is contained in:
Kovid Goyal 2014-09-02 10:37:53 +05:30
parent fbddd0427d
commit 38d9af3fe0

View File

@ -615,6 +615,10 @@ class Convert(object):
text.add_elem(SPAN(NBSP * spaces))
ans.append(text.elem)
ans[-1].set('class', 'tab')
elif is_tag(child, 'w:noBreakHyphen'):
text.buf.append(u'\u2011')
elif is_tag(child, 'w:softHyphen'):
text.buf.append(u'\u00ad')
if text.buf:
setattr(text.elem, text.attr, ''.join(text.buf))