Skip to content

Commit

Permalink
Merge pull request oreillymedia#60 from oreillymedia/sarah
Browse files Browse the repository at this point in the history
fixed bug in variablist template
  • Loading branch information
sarahs committed Dec 9, 2013
2 parents eb8be0d + b72e477 commit b33ea0f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions d2a.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
<xsl:variable name="part_content">
<!-- Title and partintro (if present) -->
<xsl:call-template name="process-id"/>
<xsl:text>&#10;</xsl:text>
<xsl:text xml:space="preserve">= </xsl:text>
<xsl:apply-templates select="title"/>
<xsl:value-of select="util:carriage-returns(2)"/>
Expand Down Expand Up @@ -260,7 +261,7 @@
</xsl:template>

<!-- Special handling for text inside code block that will be converted as Asciidoc,
to make sure special characters are not escaped. -->
to make sure special characters are not escaped.-->
<xsl:template match="text()" mode="code">
<xsl:value-of select="." disable-output-escaping="yes"></xsl:value-of>
</xsl:template>
Expand Down Expand Up @@ -676,7 +677,7 @@ ____
<xsl:template match="variablelist">
<xsl:choose>
<!-- When variablelist has a varlistentry with more than one term, or a nested variablelist, output as passthrough -->
<xsl:when test="varlistentry/term[2] | //variablelist">
<xsl:when test="./varlistentry/term[2] | .//variablelist">
<xsl:text>
++++
</xsl:text>
Expand Down

0 comments on commit b33ea0f

Please sign in to comment.