[Boost-docs] [boostbook][PATCH] member classes in synopsis

Subject: [Boost-docs] [boostbook][PATCH] member classes in synopsis
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2009-05-29 21:07:12


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

The attached patch attempts to make member classes look a little better in the
parent class synopsis. If noone objects, I'll apply it to trunk sometime
next week.

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkogToUACgkQ5vihyNWuA4XKMACgqiWqh9mLvHcrf5Lxwqb4huUT
haAAoKBByI5cjifCZyxfNgNKTgg+vrK0
=3vp1
-----END PGP SIGNATURE-----

--Boundary-00=_F6EIKPdKL8XjF2D
Content-Type: text/x-diff; charset="iso 8859-15";
        name="member_class_synopsis.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
        filename="member_class_synopsis.patch"

Index: tools/boostbook/xsl/type.xsl
===================================================================
--- tools/boostbook/xsl/type.xsl (revision 53352)
+++ tools/boostbook/xsl/type.xsl (working copy)
@@ -793,12 +793,24 @@
     </xsl:if>
 
     <!-- Nested classes/structs/unions -->
+ <xsl:if test="class|class-specialization|struct|struct-specialization|union|union-specialization">
+ <xsl:text>&#10;</xsl:text>
+ <xsl:if test="typedef|static-constant">
+ <xsl:text>&#10;</xsl:text>
+ </xsl:if>
+ <xsl:call-template name="indent">
+ <xsl:with-param name="indentation" select="$indentation + 2"/>
+ </xsl:call-template>
+ <xsl:call-template name="highlight-comment">
+ <xsl:with-param name="text" select="'// member classes/structs/unions'"/>
+ </xsl:call-template>
     <xsl:apply-templates select="class|class-specialization|
                                  struct|struct-specialization|
                                  union|union-specialization"
       mode="reference">
       <xsl:with-param name="indentation" select="$indentation + 2"/>
     </xsl:apply-templates>
+ </xsl:if>
 
     <!-- Enums -->
     <xsl:apply-templates select="enum" mode="synopsis">

--Boundary-00=_F6EIKPdKL8XjF2D--


This archive was generated by hypermail 2.1.7 : 2017-11-11 08:50:41 UTC