DOCX Input: Add option to have superscripts/subscripts converted so that they do not affect the line height of the line containing them.

Fixes #1528055 [New option for sub/sup styles in docx input](https://bugs.launchpad.net/calibre/+bug/1528055)
This commit is contained in:
m4mmon 2015-12-20 22:35:15 +01:00 committed by Kovid Goyal
parent 031dce78f5
commit 0e57cb6a90

View File

@ -629,7 +629,7 @@ class Convert(object):
elif self.namespace.is_tag(child, 'w:footnoteReference') or self.namespace.is_tag(child, 'w:endnoteReference'):
anchor, name = self.footnotes.get_ref(child)
if anchor and name:
l = SUP(A(name, href='#' + anchor, title=name), id='back_%s' % anchor)
l = A(SUP(name, id='back_%s' % anchor), href='#' + anchor, title=name)
l.set('class', 'noteref')
text.add_elem(l)
ans.append(text.elem)