mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
doxygen2boostbook.xsl:
- Only emit one copy of the definition for an enum [SVN r22757]
This commit is contained in:
parent
6b906dcc7d
commit
dcc7a747e1
@ -198,6 +198,10 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template name="enum">
|
||||
<xsl:param name="in-file"/>
|
||||
|
||||
<xsl:if test="contains(string(location/attribute::file),
|
||||
concat('/', $in-file))">
|
||||
<xsl:variable name="name">
|
||||
<xsl:call-template name="strip-qualifiers">
|
||||
<xsl:with-param name="name" select="name"/>
|
||||
@ -214,6 +218,7 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
||||
<xsl:apply-templates select="briefdescription" mode="passthrough"/>
|
||||
<xsl:apply-templates select="detaileddescription" mode="passthrough"/>
|
||||
</enum>
|
||||
</xsl:if>
|
||||
</xsl:template>
|
||||
|
||||
<xsl:template match="enumvalue">
|
||||
@ -562,7 +567,9 @@ Cannot handle compounddef with kind=<xsl:value-of select="@kind"/>
|
||||
<xsl:apply-templates/>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='enum'">
|
||||
<xsl:apply-templates/>
|
||||
<xsl:apply-templates>
|
||||
<xsl:with-param name="in-file" select="$in-file"/>
|
||||
</xsl:apply-templates>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='user-defined'">
|
||||
<xsl:apply-templates/>
|
||||
@ -640,7 +647,9 @@ Cannot handle sectiondef with kind=<xsl:value-of select="@kind"/>
|
||||
</xsl:choose>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='enum'">
|
||||
<xsl:call-template name="enum"/>
|
||||
<xsl:call-template name="enum">
|
||||
<xsl:with-param name="in-file" select="$in-file"/>
|
||||
</xsl:call-template>
|
||||
</xsl:when>
|
||||
<xsl:when test="@kind='variable'">
|
||||
<xsl:call-template name="variable"/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user