From 4ba35f4999514043d2ff420779cb07cedb8b0d96 Mon Sep 17 00:00:00 2001 From: Adrian Kummerlaender Date: Wed, 6 Aug 2014 23:49:20 +0200 Subject: 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 --- source/02_data/articles.xsl | 32 ++++++++++++++------------------ source/99_result/article/article.xsl | 2 +- utility/datasource.xsl | 2 +- utility/formatter.xsl | 2 +- utility/master.xsl | 2 +- 5 files changed, 18 insertions(+), 22 deletions(-) diff --git a/source/02_data/articles.xsl b/source/02_data/articles.xsl index bbe6f40..b3ac0df 100644 --- a/source/02_data/articles.xsl +++ b/source/02_data/articles.xsl @@ -15,6 +15,19 @@ + + + + + + + + + /usr/bin/highlight.sh + + + + @@ -29,23 +42,6 @@ - - - - - - - - - - /usr/bin/highlight.sh - - - - - - - @@ -72,7 +68,7 @@ - + diff --git a/source/99_result/article/article.xsl b/source/99_result/article/article.xsl index a82dcb1..bd7ed14 100644 --- a/source/99_result/article/article.xsl +++ b/source/99_result/article/article.xsl @@ -34,7 +34,7 @@ | Adrian Kummerländer

- + 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" /> 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 @@ + )/self::output/node()"/> 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" /> -- cgit v1.2.3