Handle Code paragraphs with multiple text nodes

This commit is contained in:
Carol (Nichols || Goulding) 2016-10-14 16:55:59 -04:00
parent f8be494cd9
commit f5dc07ddf7

View File

@ -31,21 +31,22 @@
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'CodeA']">
<xsl:text>```&#10;</xsl:text>
<xsl:value-of select="w:r/w:t" />
<xsl:apply-templates select="w:r/w:t" />
<xsl:text>&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'CodeB']">
<xsl:value-of select="w:r/w:t" />
<xsl:apply-templates select="w:r/w:t" />
<xsl:text>&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'CodeC']">
<xsl:value-of select="w:r/w:t" />
<xsl:apply-templates select="w:r/w:t" />
<xsl:text>&#10;```&#10;&#10;</xsl:text>
</xsl:template>
<xsl:template match="w:p[w:pPr/w:pStyle/@w:val = 'ProductionDirective']">
<xsl:value-of select="w:r/w:t" />
<xsl:apply-templates select="w:r/w:t" />
<xsl:text>&#10;&#10;</xsl:text>
</xsl:template>