mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
Fix #5060 (When converting .rtf superscript format is lost)
This commit is contained in:
parent
eeda6d3853
commit
f197f916a8
@ -111,7 +111,6 @@
|
|||||||
or (@shadow = 'true')
|
or (@shadow = 'true')
|
||||||
or (@hidden = 'true')
|
or (@hidden = 'true')
|
||||||
or (@outline = 'true')
|
or (@outline = 'true')
|
||||||
|
|
||||||
">
|
">
|
||||||
<emph rend = "paragraph-emph">
|
<emph rend = "paragraph-emph">
|
||||||
<xsl:apply-templates/>
|
<xsl:apply-templates/>
|
||||||
@ -277,6 +276,26 @@
|
|||||||
<xsl:value-of select="count(preceding::rtf:footnote) + 1"/>
|
<xsl:value-of select="count(preceding::rtf:footnote) + 1"/>
|
||||||
<xsl:text>]</xsl:text>
|
<xsl:text>]</xsl:text>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
|
<xsl:when test="(@superscript = 'true')">
|
||||||
|
<xsl:element name="sup">
|
||||||
|
<xsl:element name="span">
|
||||||
|
<xsl:attribute name="class">
|
||||||
|
<c:inline-class/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:when>
|
||||||
|
<xsl:when test="(@underscript = 'true')">
|
||||||
|
<xsl:element name="sub">
|
||||||
|
<xsl:element name="span">
|
||||||
|
<xsl:attribute name="class">
|
||||||
|
<c:inline-class/>
|
||||||
|
</xsl:attribute>
|
||||||
|
<xsl:apply-templates/>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:element>
|
||||||
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<xsl:element name="span">
|
<xsl:element name="span">
|
||||||
<xsl:attribute name="class">
|
<xsl:attribute name="class">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user