changeset 1082:c3a1cf38f19e

Added explicit X:text to avoid spurious whitespaces. While use of XSLScript produces no trailing whitespace and resulting link is correct, it's believed that this is by chance. XSLT produced with perl-based XSLScript replacement is slightly different (trailing whitespace after "./" isn't stripped), and X:text is required to produce proper output.
author Maxim Dounin <mdounin@mdounin.ru>
date Thu, 27 Feb 2014 18:07:35 +0400
parents 83a64d9082bc
children 2c57830e0149
files xsls/menu.xsls
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/xsls/menu.xsls	Wed Feb 26 18:18:26 2014 +0000
+++ b/xsls/menu.xsls	Thu Feb 27 18:07:35 2014 +0400
@@ -52,7 +52,7 @@
 
                 X:if "starts-with(@href, $DIRNAME)" {
                     X:if "substring-after(@href, $DIRNAME) = ''" {
-                        ./
+                        X:text {./}
                     } else {
                         !{ substring-after(@href, $DIRNAME) }
                     }