bison-patches
[Top][All Lists]
Advanced

[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




reply via email to

[Prev in Thread] Current Thread [Next in Thread]