summaryrefslogtreecommitdiffhomepage
path: root/docs/changes.xslt
diff options
context:
space:
mode:
authorAndrei Belov <defan@nginx.com>2018-02-14 14:00:37 +0300
committerAndrei Belov <defan@nginx.com>2018-02-14 14:00:37 +0300
commit951d3b26cc51a8349697b0a4f893308ea60cec69 (patch)
treeb47aa01e94685980e72aba159792cb82d03093b0 /docs/changes.xslt
parent18c66cb07d5dd17a5c061859855ca6b193390ddb (diff)
downloadunit-951d3b26cc51a8349697b0a4f893308ea60cec69.tar.gz
unit-951d3b26cc51a8349697b0a4f893308ea60cec69.tar.bz2
Docs: extended xsls template for changelogs generation.
Diffstat (limited to 'docs/changes.xslt')
-rw-r--r--docs/changes.xslt13
1 files changed, 10 insertions, 3 deletions
diff --git a/docs/changes.xslt b/docs/changes.xslt
index d5a00f4b..22abb656 100644
--- a/docs/changes.xslt
+++ b/docs/changes.xslt
@@ -213,9 +213,16 @@
<xsl:template name="string_in_list"><xsl:param name="list"/><xsl:param name="string"/>
<xsl:choose>
- <xsl:when test="contains($list, ',')">
- <xsl:variable select="substring-before($list, ',')" name="str"/>
- <xsl:call-template name="string_in_list"><xsl:with-param select="substring-after($list, ',')" name="list"/><xsl:with-param select="$string" name="string"/></xsl:call-template></xsl:when>
+ <xsl:when test="contains($list, ' ')">
+ <xsl:variable select="substring-before($list, ' ')" name="str"/>
+ <xsl:choose>
+ <xsl:when test="$str=$string">
+ <xsl:value-of select="$string"/>
+ </xsl:when>
+ <xsl:otherwise>
+ <xsl:call-template name="string_in_list"><xsl:with-param select="substring-after($list, ' ')" name="list"/><xsl:with-param select="$string" name="string"/></xsl:call-template></xsl:otherwise>
+ </xsl:choose>
+ </xsl:when>
<xsl:otherwise>
<xsl:if test="$list=$string"> <xsl:value-of select="$string"/> </xsl:if>
<xsl:if test="$list='*'"> <xsl:value-of select="$string"/> </xsl:if>