Skip to content

Commit 185f8e9

Browse files
committed
Fix nested para
1 parent 6d36288 commit 185f8e9

File tree

1 file changed

+10
-4
lines changed

1 file changed

+10
-4
lines changed

Customization/xsl/html-processing.xsl

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,16 @@
3535
Paragraph processing
3636
-->
3737
<xsl:template match="para" mode="html">
38-
<p class="- topic/p ">
39-
40-
<xsl:apply-templates mode="html"/>
41-
</p>
38+
<xsl:choose>
39+
<xsl:when test="ancestor::para">
40+
<xsl:apply-templates mode="html"/>
41+
</xsl:when>
42+
<xsl:otherwise>
43+
<p class="- topic/p ">
44+
<xsl:apply-templates mode="html"/>
45+
</p>
46+
</xsl:otherwise>
47+
</xsl:choose>
4248
</xsl:template>
4349

4450
<!--

0 commit comments

Comments
 (0)