writerfilter/source/doctok/resources.xsl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 5dbbedf5b093e00ffac9303e4b5c75fb8a8dff88 Author: Thorsten Behrens <thorsten.behr...@cib.de> AuthorDate: Fri Nov 20 23:40:52 2020 +0100 Commit: Thorsten Behrens <thorsten.behr...@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> _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits