summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThorsten Behrens <Thorsten.Behrens@CIB.de>2020-11-20 23:40:52 +0100
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2020-11-23 10:23:40 +0100
commitfdea9034ed8ffa70bdb37a4380aec182fe59913a (patch)
tree68cb7ebdea690ff298912f33b9edbfcdbbfd0583
parentbe22e291faf4c299b42c49ceb0f440b4dd8ba50a (diff)
Make writerfilter codegen work with newer libxslt
This code was otherwise sometimes writing only whitespace for the shift operand, rendering the statement invalid. Change-Id: I70644a00fc038f56315bc0cd19efb26d71f24acd
-rw-r--r--writerfilter/source/doctok/resources.xsl2
1 files changed, 1 insertions, 1 deletions
diff --git a/writerfilter/source/doctok/resources.xsl b/writerfilter/source/doctok/resources.xsl
index 204b2c7ed366..5b3260fe339d 100644
--- a/writerfilter/source/doctok/resources.xsl
+++ b/writerfilter/source/doctok/resources.xsl
@@ -522,7 +522,7 @@ class </xsl:text>
<xsl:value-of select="$mask"/>
</xsl:if>
<xsl:text>)</xsl:text>
- <xsl:if test="$shift>0">
+ <xsl:if test="string-length($shift)>0 and $shift>0">
<xsl:text>&gt;&gt; </xsl:text>
<xsl:value-of select="$shift"/>
</xsl:if>