diff options
author | Andrei Belov <defan@nginx.com> | 2018-02-14 14:00:37 +0300 |
---|---|---|
committer | Andrei Belov <defan@nginx.com> | 2018-02-14 14:00:37 +0300 |
commit | 951d3b26cc51a8349697b0a4f893308ea60cec69 (patch) | |
tree | b47aa01e94685980e72aba159792cb82d03093b0 /docs/changes.xsls | |
parent | 18c66cb07d5dd17a5c061859855ca6b193390ddb (diff) | |
download | unit-951d3b26cc51a8349697b0a4f893308ea60cec69.tar.gz unit-951d3b26cc51a8349697b0a4f893308ea60cec69.tar.bz2 |
Docs: extended xsls template for changelogs generation.
Diffstat (limited to '')
-rw-r--r-- | docs/changes.xsls | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/docs/changes.xsls b/docs/changes.xsls index eba762ed..f2ba1c8e 100644 --- a/docs/changes.xsls +++ b/docs/changes.xsls @@ -219,9 +219,17 @@ X:template padded_day(date) { X:template string_in_list(list, string) { X:choose { - X:when "contains($list, ',')" { - X:var str = "substring-before($list, ',')"; - !string_in_list(list="substring-after($list, ',')", string="$string") + X:when "contains($list, ' ')" { + X:var str = "substring-before($list, ' ')"; + X:choose { + X:when "$str=$string" { + !{$string} + } + X:otherwise { + !string_in_list(list="substring-after($list, ' ')", + string="$string") + } + } } X:otherwise { X:if "$list=$string" { !{$string} } |