[Libreoffice-commits] core.git: Branch 'feature/cib_contract891' - writerfilter/source

Thorsten Behrens (via logerrit) logerrit at kemper.freedesktop.org
Fri Nov 20 22:42:44 UTC 2020


 writerfilter/source/doctok/resources.xsl |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 5dbbedf5b093e00ffac9303e4b5c75fb8a8dff88
Author:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
AuthorDate: Fri Nov 20 23:40:52 2020 +0100
Commit:     Thorsten Behrens <Thorsten.Behrens at CIB.de>
CommitDate: Fri Nov 20 23:40:52 2020 +0100

    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

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>>> </xsl:text>
               <xsl:value-of select="$shift"/>
             </xsl:if>


More information about the Libreoffice-commits mailing list