mirror of
https://github.com/boostorg/boostbook.git
synced 2025-05-09 15:03:57 +00:00
* Handle parameter descriptions _correctly_
* Map Doxygen \note to <notes> [SVN r19062]
This commit is contained in:
parent
d1ab30b7f1
commit
6a1bd24e70
@ -613,7 +613,7 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
|
|||||||
<xsl:param name="name"/>
|
<xsl:param name="name"/>
|
||||||
|
|
||||||
<!-- The parametername node associated with this description -->
|
<!-- The parametername node associated with this description -->
|
||||||
<xsl:variable name="name-node" select="../*[position()=1]"/>
|
<xsl:variable name="name-node" select="preceding-sibling::*[1]"/>
|
||||||
|
|
||||||
<xsl:if test="string($name-node/text()) = $name">
|
<xsl:if test="string($name-node/text()) = $name">
|
||||||
<description>
|
<description>
|
||||||
@ -647,6 +647,9 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
|
|||||||
mode="function-clauses"/>
|
mode="function-clauses"/>
|
||||||
</throws>
|
</throws>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:apply-templates
|
||||||
|
select="detaileddescription/para/simplesect[@kind='note']"
|
||||||
|
mode="function-clauses"/>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<!-- Handle free functions -->
|
<!-- Handle free functions -->
|
||||||
@ -767,7 +770,8 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
|
|||||||
|
|
||||||
<xsl:template match="para/simplesect" mode="passthrough">
|
<xsl:template match="para/simplesect" mode="passthrough">
|
||||||
<xsl:if test="not (@kind='return') and
|
<xsl:if test="not (@kind='return') and
|
||||||
not (@kind='post')">
|
not (@kind='post') and
|
||||||
|
not (@kind='note')">
|
||||||
<xsl:apply-templates mode="passthrough"/>
|
<xsl:apply-templates mode="passthrough"/>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
@ -808,6 +812,11 @@ Cannot handle memberdef element with kind=<xsl:value-of select="@kind"/>
|
|||||||
<xsl:apply-templates mode="passthrough"/>
|
<xsl:apply-templates mode="passthrough"/>
|
||||||
</postconditions>
|
</postconditions>
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:if test="@kind='note'">
|
||||||
|
<notes>
|
||||||
|
<xsl:apply-templates mode="passthrough"/>
|
||||||
|
</notes>
|
||||||
|
</xsl:if>
|
||||||
</xsl:template>
|
</xsl:template>
|
||||||
|
|
||||||
<xsl:template match="parameterlist" mode="function-clauses">
|
<xsl:template match="parameterlist" mode="function-clauses">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user