From 0e57cb6a9091cbb6ba67310d46ad4c6d098f0cae Mon Sep 17 00:00:00 2001 From: m4mmon Date: Sun, 20 Dec 2015 22:35:15 +0100 Subject: [PATCH] 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) --- src/calibre/ebooks/docx/to_html.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/docx/to_html.py b/src/calibre/ebooks/docx/to_html.py index 7cbf7c3b2b..de6dbecc8b 100644 --- a/src/calibre/ebooks/docx/to_html.py +++ b/src/calibre/ebooks/docx/to_html.py @@ -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)