[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 07/10] html: simplify
From: |
Akim Demaille |
Subject: |
[PATCH 07/10] html: simplify |
Date: |
Sat, 11 Jul 2020 12:55:25 +0200 |
* data/xslt/xml2xhtml.xsl: Merge two identical when-clauses.
---
data/xslt/xml2xhtml.xsl | 8 +-------
1 file changed, 1 insertion(+), 7 deletions(-)
diff --git a/data/xslt/xml2xhtml.xsl b/data/xslt/xml2xhtml.xsl
index a1afad2d..b5aeba94 100644
--- a/data/xslt/xml2xhtml.xsl
+++ b/data/xslt/xml2xhtml.xsl
@@ -531,13 +531,7 @@
<!-- LHS -->
<xsl:choose>
- <xsl:when test="$itemset != 'true' and $prev-lhs = lhs[text()]">
- <xsl:call-template name="lpad">
- <xsl:with-param name="str" select="'|'"/>
- <xsl:with-param name="pad" select="number(string-length(lhs[text()]))
+ 2"/>
- </xsl:call-template>
- </xsl:when>
- <xsl:when test="$itemset = 'true' and $prev-lhs = lhs[text()]">
+ <xsl:when test="$prev-lhs = lhs[text()]">
<xsl:call-template name="lpad">
<xsl:with-param name="str" select="'|'"/>
<xsl:with-param name="pad" select="number(string-length(lhs[text()]))
+ 2"/>
--
2.27.0
- [PATCH 00/10] Update HTML reports, Akim Demaille, 2020/07/11
- [PATCH 01/10] maint: make it easier to update expectations, Akim Demaille, 2020/07/11
- [PATCH 02/10] style: factor complex expressions, Akim Demaille, 2020/07/11
- [PATCH 03/10] tests: check html, Akim Demaille, 2020/07/11
- [PATCH 04/10] reports: update html ouput, Akim Demaille, 2020/07/11
- [PATCH 05/10] reports: let xml reports catch up with --report and --graph, Akim Demaille, 2020/07/11
- [PATCH 06/10] reports: let html reports catch up with --report and --graph, Akim Demaille, 2020/07/11
- [PATCH 07/10] html: simplify,
Akim Demaille <=
- [PATCH 08/10] html: don't define several times the same anchors, Akim Demaille, 2020/07/11
- [PATCH 09/10] fixup! maint: make it easier to update expectations, Akim Demaille, 2020/07/11
- [PATCH 10/10] html: capitalize titles, Akim Demaille, 2020/07/11