Boost logo

Boost-Commit :

From: fmhess_at_[hidden]
Date: 2007-09-12 09:37:06


Author: fmhess
Date: 2007-09-12 09:37:06 EDT (Wed, 12 Sep 2007)
New Revision: 39216
URL: http://svn.boost.org/trac/boost/changeset/39216

Log:
Fixed a problem with boostbook printing an extra colon in a class
synopsis, when a class inherits from a single base class and
it's too long to fit on one line.

Text files modified:
   sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl | 9 ++++-----
   1 files changed, 4 insertions(+), 5 deletions(-)

Modified: sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl
==============================================================================
--- sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl (original)
+++ sandbox/boost_docs/trunk/tools/boostbook/xsl/type.xsl 2007-09-12 09:37:06 EDT (Wed, 12 Sep 2007)
@@ -546,17 +546,17 @@
       <xsl:when test="$single-line-candidate and
                       (string-length($single-line) + $indentation + 3
                         &lt; $pre.text.max.columns)">
+ <xsl:text> : </xsl:text>
         <xsl:call-template name="print.base.classes.single"/>
         <xsl:text> {</xsl:text>
       </xsl:when>
       <xsl:when test="$single-line-candidate and
- (string-length($single-line) + $base-indentation + 5
+ (string-length($single-line) + $base-indentation + 2
                         &lt; $pre.text.max.columns)">
- <xsl:text>&#10;</xsl:text>
+ <xsl:text> :&#10;</xsl:text>
         <xsl:call-template name="indent">
- <xsl:with-param name="indentation" select="$base-indentation"/>
+ <xsl:with-param name="indentation" select="$base-indentation + 2"/>
         </xsl:call-template>
- <xsl:text> : </xsl:text>
         <xsl:call-template name="print.base.classes.single"/>
         <xsl:text>&#10;</xsl:text>
         <xsl:call-template name="indent">
@@ -582,7 +582,6 @@
   <xsl:template match="inherit">
     <xsl:choose>
       <xsl:when test="position()=1">
- <xsl:text> : </xsl:text>
       </xsl:when>
       <xsl:otherwise>
         <xsl:text>, </xsl:text>


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