aboutsummaryrefslogtreecommitdiff
path: root/utility
diff options
context:
space:
mode:
authorAdrian Kummerlaender2014-08-06 23:49:20 +0200
committerAdrian Kummerlaender2014-08-06 23:49:20 +0200
commit4ba35f4999514043d2ff420779cb07cedb8b0d96 (patch)
tree1310c032fc24df6d80d164db95205fde5c6d4f38 /utility
parent96895b711b282e914d064273ef9f74b2c5f0c920 (diff)
downloadblog.kummerlaender.eu-4ba35f4999514043d2ff420779cb07cedb8b0d96.tar
blog.kummerlaender.eu-4ba35f4999514043d2ff420779cb07cedb8b0d96.tar.gz
blog.kummerlaender.eu-4ba35f4999514043d2ff420779cb07cedb8b0d96.tar.bz2
blog.kummerlaender.eu-4ba35f4999514043d2ff420779cb07cedb8b0d96.tar.lz
blog.kummerlaender.eu-4ba35f4999514043d2ff420779cb07cedb8b0d96.tar.xz
blog.kummerlaender.eu-4ba35f4999514043d2ff420779cb07cedb8b0d96.tar.zst
blog.kummerlaender.eu-4ba35f4999514043d2ff420779cb07cedb8b0d96.zip
Improved automatic source code highlighting
* disable indentation in both the page and datasource master stylesheets ** indentation was interfering with correct output of formatted code * simplified call to formatter helper template
Diffstat (limited to 'utility')
-rw-r--r--utility/datasource.xsl2
-rw-r--r--utility/formatter.xsl2
-rw-r--r--utility/master.xsl2
3 files changed, 3 insertions, 3 deletions
diff --git a/utility/datasource.xsl b/utility/datasource.xsl
index ce31d41..411086a 100644
--- a/utility/datasource.xsl
+++ b/utility/datasource.xsl
@@ -8,7 +8,7 @@
method="xml"
omit-xml-declaration="no"
encoding="UTF-8"
- indent="yes"
+ indent="no"
/>
<xsl:variable name="root" select="/datasource"/>
diff --git a/utility/formatter.xsl b/utility/formatter.xsl
index 49d8630..0f7643e 100644
--- a/utility/formatter.xsl
+++ b/utility/formatter.xsl
@@ -14,7 +14,7 @@
<xsl:copy-of select="InputXSLT:external-text-formatter(
$format,
$source
- )/self::output/*"/>
+ )/self::output/node()"/>
</xsl:template>
</xsl:stylesheet>
diff --git a/utility/master.xsl b/utility/master.xsl
index c682072..66cfdb3 100644
--- a/utility/master.xsl
+++ b/utility/master.xsl
@@ -10,7 +10,7 @@
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"
omit-xml-declaration="yes"
encoding="UTF-8"
- indent="yes"
+ indent="no"
/>
<xsl:variable name="root" select="/datasource"/>