|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r52326 - trunk/tools/boostbook/xsl/doxygen
From: daniel_james_at_[hidden]
Date: 2009-04-11 08:38:31
Author: danieljames
Date: 2009-04-11 08:38:30 EDT (Sat, 11 Apr 2009)
New Revision: 52326
URL: http://svn.boost.org/trac/boost/changeset/52326
Log:
Workaround buggy doxygen output. Refs #2937
Text files modified:
trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl | 16 ++++++++++++++++
1 files changed, 16 insertions(+), 0 deletions(-)
Modified: trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl
==============================================================================
--- trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl (original)
+++ trunk/tools/boostbook/xsl/doxygen/doxygen2boostbook.xsl 2009-04-11 08:38:30 EDT (Sat, 11 Apr 2009)
@@ -563,6 +563,22 @@
</xsl:if>
</template-type-parameter>
</xsl:when>
+ <!-- Doxygen 1.5.8 generates odd xml for template type parameters.
+ This deals with that -->
+ <xsl:when test="not(declname) and
+ (starts-with(string(type), 'class ') or starts-with(string(type), 'typename '))">
+ <template-type-parameter>
+ <xsl:attribute name="name">
+ <xsl:value-of select="normalize-space(substring-after(string(type), ' '))"/>
+ </xsl:attribute>
+ <xsl:if test="defval">
+ <default>
+ <xsl:apply-templates select="defval/*|defval/text()"
+ mode="passthrough"/>
+ </default>
+ </xsl:if>
+ </template-type-parameter>
+ </xsl:when>
<xsl:otherwise>
<template-nontype-parameter>
<xsl:attribute name="name">
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