From 971e5a78f97fa3f94633244196f455112c32a40c Mon Sep 17 00:00:00 2001
From: Tom Willemse
Date: Fri, 19 Apr 2024 21:46:42 -0700
Subject: fix(scuttlizr): No named entity for non-breaking space in XHTML
While running in Debug mode XHTML is rendered instead of HTML, and XHTML doesn't
have a named entity for non-breaking space (‘ ’ in HTML), so the numeric
one must be used instead.
---
data/templates/sscuttlizr/importStructure.tpl.php | 10 +++++-----
data/templates/sscuttlizr/sidebar.linkedtags.inc.php | 2 +-
2 files changed, 6 insertions(+), 6 deletions(-)
(limited to 'data/templates/sscuttlizr')
diff --git a/data/templates/sscuttlizr/importStructure.tpl.php b/data/templates/sscuttlizr/importStructure.tpl.php
index 9c54612..580330a 100644
--- a/data/templates/sscuttlizr/importStructure.tpl.php
+++ b/data/templates/sscuttlizr/importStructure.tpl.php
@@ -24,11 +24,11 @@ $this->includeTemplate($GLOBALS['top_include']);
- firstTagOfLevel1
- - firstTagOfLevel2 (the line starts with two spaces)
- - secondTagOfLevel2
- - thirdTagOfLevel2
+ - firstTagOfLevel2 (the line starts with two spaces)
+ - secondTagOfLevel2
+ - thirdTagOfLevel2
- secondTagOfLevel1
- - fourthTagOfLevel2 (included into secondTagOfLevel1)
+ - fourthTagOfLevel2 (included into secondTagOfLevel1)
@@ -39,4 +39,4 @@ $this->includeTemplate($GLOBALS['top_include']);
includeTemplate($GLOBALS['bottom_include']);
-?>
\ No newline at end of file
+?>
diff --git a/data/templates/sscuttlizr/sidebar.linkedtags.inc.php b/data/templates/sscuttlizr/sidebar.linkedtags.inc.php
index 020d0f0..aef00f0 100644
--- a/data/templates/sscuttlizr/sidebar.linkedtags.inc.php
+++ b/data/templates/sscuttlizr/sidebar.linkedtags.inc.php
@@ -28,7 +28,7 @@ function displayLinkedTags($tag, $linkType, $uId, $cat_url, $user, $editingMode
$output.= ' | ';
$output.= '';
$output.= $level == 1?'':'';
- $output.= str_repeat(' ', $level*2) .$link.''. filter($tag) .'';
+ $output.= str_repeat(' ', $level*2) .$link.''. filter($tag) .'';
$output.= $level == 1?'':'';
//$output.= ' - '. $tagstatservice->getMaxDepth($tag, $linkType, $uId);
--
cgit v1.2.3-54-g00ecf
|