Fix #5060 (When converting .rtf superscript format is lost)

This commit is contained in:
Kovid Goyal 2010-07-16 08:46:47 -06:00
parent eeda6d3853
commit f197f916a8

View File

@ -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">