$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r84554 - trunk/tools/boostbook/xsl
From: dnljms_at_[hidden]
Date: 2013-05-30 04:29:13
Author: danieljames
Date: 2013-05-30 04:29:12 EDT (Thu, 30 May 2013)
New Revision: 84554
URL: http://svn.boost.org/trac/boost/changeset/84554
Log:
Normalise space in section class.
Cleans up the output a tad bit when there's no role.
Text files modified: 
   trunk/tools/boostbook/xsl/docbook-layout.xsl |     5 +++--                                   
   1 files changed, 3 insertions(+), 2 deletions(-)
Modified: trunk/tools/boostbook/xsl/docbook-layout.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/docbook-layout.xsl	(original)
+++ trunk/tools/boostbook/xsl/docbook-layout.xsl	2013-05-30 04:29:12 EDT (Thu, 30 May 2013)
@@ -221,7 +221,8 @@
         <xsl:with-param name="object" select="$node"/>
       </xsl:call-template>
     </xsl:variable>
-    <xsl:value-of select="concat($class,' ',@role,' ',translate($id, '.', '_'))"/>
+    <xsl:value-of select="normalize-space(concat($class, ' ',
+        @role, ' ', translate($id, '.', '_')))"/>
   </xsl:template>
   
   <!-- Adds role class for simplesect element resulting div. So that
@@ -229,7 +230,7 @@
   <xsl:template match="simplesect" mode="class.value">
     <xsl:param name="class" select="local-name(.)"/>
     <xsl:param name="node" select="."/>
-    <xsl:value-of select="concat($class,' ',@role)"/>
+    <xsl:value-of select="normalize-space(concat($class,' ',@role))"/>
   </xsl:template>
   
   <!-- Allow for specifying that a section should not include the parents