|
Boost-Commit : |
From: fmhess_at_[hidden]
Date: 2007-12-31 10:54:01
Author: fmhess
Date: 2007-12-31 10:54:00 EST (Mon, 31 Dec 2007)
New Revision: 42390
URL: http://svn.boost.org/trac/boost/changeset/42390
Log:
Fixed some minor newline and highlighting issues
in class synopsis for "data-member" elements.
Text files modified:
trunk/tools/boostbook/xsl/type.xsl | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
Modified: trunk/tools/boostbook/xsl/type.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/type.xsl (original)
+++ trunk/tools/boostbook/xsl/type.xsl 2007-12-31 10:54:00 EST (Mon, 31 Dec 2007)
@@ -836,6 +836,7 @@
<xsl:template name="print-access-specification">
<xsl:param name="indentation" select="0"/>
<xsl:param name="specification" select="'public'"/>
+
<xsl:text> </xsl:text>
<xsl:call-template name="indent">
<xsl:with-param name="indentation" select="$indentation"/>
@@ -873,11 +874,12 @@
<xsl:if test="ancestor::class|ancestor::class-specialization|
ancestor::struct|ancestor::struct-specialization|
ancestor::union|ancestor::union-specialization">
- <xsl:text> </xsl:text>
+ <xsl:text> </xsl:text>
<!-- If this nested class has a "purpose" element, use it as a
comment. -->
<xsl:if test="purpose">
+ <xsl:text> </xsl:text>
<xsl:call-template name="indent">
<xsl:with-param name="indentation" select="$indentation"/>
</xsl:call-template>
@@ -1144,7 +1146,7 @@
<!-- Spacing -->
<xsl:if
- test="not(local-name(preceding-sibling::*[position()=1])=local-name(.))">
+ test="not(local-name(preceding-sibling::*[position()=1])=local-name(.)) and (position() > 1)">
<xsl:text> </xsl:text>
</xsl:if>
@@ -1161,7 +1163,7 @@
<xsl:text> </xsl:text>
</xsl:if>
- <xsl:apply-templates select="type/*|type/text()" mode="annotation"/>
+ <xsl:apply-templates select="type" mode="highlight"/>
<xsl:text> </xsl:text>
<xsl:value-of select="@name"/>
<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