[Boost-docs] [boostbook] class free-function-group synopsis patch

Subject: [Boost-docs] [boostbook] class free-function-group synopsis patch
From: Frank Mori Hess (frank.hess_at_[hidden])
Date: 2008-05-09 15:11:14


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

Attached is a one-line patch that prevents a class' associated free functions
(a "free-function-group" element inside a "class" element) from reappearing
in the synopsis of member classes. That is, for something like

<class name="A">
  <class name="AMemberClass"/>
  <free-function-group name="A's free functions"/>
</class>

"A's free functions" will currently appear both in the synopsis of class "A"
and the synopsis of class "AMemberClass". This patch prevents them from
appearing in the synopsis of "AMemberClass".

I'll commit the change to svn in a few days if I don't hear any objections.

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

iD8DBQFIJGmX5vihyNWuA4URArKVAJ4uklGLr7uA2RV9TJGjHG+cS3kVPQCeJ92E
1nawRPl47ne3NyxYZc3K9JE=
=84nB
-----END PGP SIGNATURE-----

--Boundary-00=_XmGJIoFJfDCHNIp
Content-Type: text/x-diff; charset="utf-8"; name="class_free_function.patch"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
        filename="class_free_function.patch"

Index: tools/boostbook/xsl/type.xsl
===================================================================
--- tools/boostbook/xsl/type.xsl (revision 45251)
+++ tools/boostbook/xsl/type.xsl (working copy)
@@ -1072,7 +1072,7 @@
           <xsl:with-param name="allow-synopsis-anchors" select="true()"/>
         </xsl:call-template>
         <!-- Associated free functions -->
- <xsl:apply-templates select="ancestor-or-self::*/free-function-group"
+ <xsl:apply-templates select="free-function-group"
           mode="synopsis">
           <xsl:with-param name="indentation" select="$indentation"/>
           <xsl:with-param name="class" select="@name"/>

--Boundary-00=_XmGJIoFJfDCHNIp--


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