legi2odf: handle emphasis elements that are not enclosed in <para>

This commit is contained in:
Frédéric Péters 2015-01-07 14:35:15 +01:00
parent cbeb691a41
commit ce41206cb8
1 changed files with 7 additions and 1 deletions

View File

@ -257,7 +257,13 @@
</text:note>
</xsl:template>
<xsl:template match="emphasis" mode="inline">
<xsl:template match="emphasis"> <!-- catch them out of <para> -->
<text:p>
<xsl:call-template name="inline-emphasis" mode="inline"/>
</text:p>
</xsl:template>
<xsl:template name="inline-emphasis" match="emphasis" mode="inline">
<xsl:choose>
<xsl:when test="@role = 'bold'"/>
<xsl:when test="@role = 'underline'"/>