mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
031dce78f5
commit
0e57cb6a90
@ -629,7 +629,7 @@ class Convert(object):
|
|||||||
elif self.namespace.is_tag(child, 'w:footnoteReference') or self.namespace.is_tag(child, 'w:endnoteReference'):
|
elif self.namespace.is_tag(child, 'w:footnoteReference') or self.namespace.is_tag(child, 'w:endnoteReference'):
|
||||||
anchor, name = self.footnotes.get_ref(child)
|
anchor, name = self.footnotes.get_ref(child)
|
||||||
if anchor and name:
|
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')
|
l.set('class', 'noteref')
|
||||||
text.add_elem(l)
|
text.add_elem(l)
|
||||||
ans.append(text.elem)
|
ans.append(text.elem)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user