Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r62284 - trunk/tools/boostbook/xsl
From: steven_at_[hidden]
Date: 2010-05-27 20:58:35


Author: steven_watanabe
Date: 2010-05-27 20:58:34 EDT (Thu, 27 May 2010)
New Revision: 62284
URL: http://svn.boost.org/trac/boost/changeset/62284

Log:
Use XML entities instead of C escapes for new lines and tabs
Text files modified:
   trunk/tools/boostbook/xsl/source-highlight.xsl | 6 +++---
   1 files changed, 3 insertions(+), 3 deletions(-)

Modified: trunk/tools/boostbook/xsl/source-highlight.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/source-highlight.xsl (original)
+++ trunk/tools/boostbook/xsl/source-highlight.xsl 2010-05-27 20:58:34 EDT (Thu, 27 May 2010)
@@ -167,7 +167,7 @@
           <xsl:with-param name="pos" select="$pos + 1"/>
         </xsl:call-template>
       </xsl:when>
- <xsl:when test="contains(' \t', substring($text, $pos, 1))">
+ <xsl:when test="contains(' &#x9;', substring($text, $pos, 1))">
         <xsl:call-template name="highlight-text-pp-directive-length">
           <xsl:with-param name="text" select="$text"/>
           <xsl:with-param name="pos" select="$pos + 1"/>
@@ -229,10 +229,10 @@
       </xsl:when>
       <xsl:when test="substring($text, 1, 2) = '//'">
         <xsl:call-template name="highlight-comment">
- <xsl:with-param name="text" select="substring-before($text, '\n')"/>
+ <xsl:with-param name="text" select="substring-before($text, '&#xA;')"/>
         </xsl:call-template>
         <xsl:call-template name="highlight-text-impl-root">
- <xsl:with-param name="text" select="concat('\n', substring-after($text, '\n'))"/>
+ <xsl:with-param name="text" select="concat('&#xA;', substring-after($text, '&#xA;'))"/>
         </xsl:call-template>
       </xsl:when>
       <xsl:when test="substring($text, 1, 2) = '/*'">


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk