$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r60586 - sandbox/geometry/libs/geometry/doc/quickbook
From: mateusz_at_[hidden]
Date: 2010-03-14 17:54:47
Author: mloskot
Date: 2010-03-14 17:54:46 EDT (Sun, 14 Mar 2010)
New Revision: 60586
URL: http://svn.boost.org/trac/boost/changeset/60586
Log:
Geometry: improved reference.xsl to escape Quickbook punctuations [] which are used in comments to denote intervals.
Text files modified: 
   sandbox/geometry/libs/geometry/doc/quickbook/reference.xsl |    23 +++++++++++++++++++++--                 
   1 files changed, 21 insertions(+), 2 deletions(-)
Modified: sandbox/geometry/libs/geometry/doc/quickbook/reference.xsl
==============================================================================
--- sandbox/geometry/libs/geometry/doc/quickbook/reference.xsl	(original)
+++ sandbox/geometry/libs/geometry/doc/quickbook/reference.xsl	2010-03-14 17:54:46 EDT (Sun, 14 Mar 2010)
@@ -413,6 +413,20 @@
         <xsl:with-param name="text" select="substring-after($text, '_')"/>
       </xsl:call-template>
     </xsl:when>
+    <xsl:when test="contains($text, '[')">
+      <xsl:value-of select="substring-before($text, '[')"/>
+      <xsl:text>\[</xsl:text>
+      <xsl:call-template name="escape-text">
+        <xsl:with-param name="text" select="substring-after($text, '[')"/>
+      </xsl:call-template>
+    </xsl:when>
+    <xsl:when test="contains($text, ']')">
+      <xsl:value-of select="substring-before($text, ']')"/>
+      <xsl:text>\]</xsl:text>
+      <xsl:call-template name="escape-text">
+        <xsl:with-param name="text" select="substring-after($text, ']')"/>
+      </xsl:call-template>
+    </xsl:when>
     <xsl:otherwise>
       <xsl:value-of select="$text"/>
     </xsl:otherwise>
@@ -673,13 +687,18 @@
   [
     [[link boost_geometry.reference.<xsl:value-of select="$class-id"/>.<xsl:value-of select="$id"/>
       <xsl:text> </xsl:text>[*<xsl:value-of select="$name"/><xsl:text>]]]
-    [</xsl:text><xsl:value-of select="briefdescription"/>
+    [</xsl:text>
+     <xsl:call-template name="escape-text">
+        <xsl:with-param name="text" select="briefdescription"/>
+    </xsl:call-template>
   </xsl:if>
   <xsl:if test="not($overload-position = 1) and not(briefdescription = preceding-sibling::*/briefdescription)">
     <xsl:value-of select="$newline"/>
     <xsl:value-of select="$newline"/>
     <xsl:text>     </xsl:text>
-    <xsl:value-of select="briefdescription"/>
+      <xsl:call-template name="escape-text">
+        <xsl:with-param name="text" select="briefdescription"/>
+      </xsl:call-template>
   </xsl:if>
   <xsl:if test="$overload-position = $overload-count">
   <xsl:text>]