[snowy] Fix from Mike Gorse to make the xsl properly break on newlines.



commit 152ec57699e9a03a8e35e6d739800e71619c8b51
Author: Brad Taylor <brad getcoded net>
Date:   Wed May 13 14:59:18 2009 -0400

    Fix from Mike Gorse to make the xsl properly break on newlines.
---
 data/note2xhtml.xsl |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/data/note2xhtml.xsl b/data/note2xhtml.xsl
index d690afc..f107127 100644
--- a/data/note2xhtml.xsl
+++ b/data/note2xhtml.xsl
@@ -26,11 +26,11 @@
 <xsl:template name="softbreak">
 	<xsl:param name="text" select="."/>
 	<xsl:choose>
-		<xsl:when test="contains($text, '&#x2028;')">
-			<xsl:value-of select="substring-before($text, '&#x2028;')"/>
+		<xsl:when test="contains($text, '&#x000a;')">
+			<xsl:value-of select="substring-before($text, '&#x000a;')"/>
 			<br/>
 			<xsl:call-template name="softbreak">
-				<xsl:with-param name="text" select="substring-after($text, '&#x2028;')"/>
+				<xsl:with-param name="text" select="substring-after($text, '&#x000a;')"/>
 			</xsl:call-template>
 		</xsl:when>
 		



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]