Pass through contents of parblock in Doxygen.

\parblock can be used to group multiple paragraps under a block command
that expects a single paragraph as argument (e.g. \returns). So just
forward the contents of the parblock in the current context.
This commit is contained in:
Andrey Semashev 2024-06-29 20:57:29 +03:00
parent 1198d50fd9
commit 03120084bb

View File

@ -1582,9 +1582,21 @@
<xsl:value-of select="."/>
</xsl:template>
<xsl:template match="para" mode="passthrough">
<para>
<xsl:apply-templates mode="passthrough"/>
</para>
<xsl:choose>
<xsl:when test="parblock">
<!-- parblock is expected to contain a number of paragraphs,
so just forward them directly in the current context. -->
<xsl:apply-templates mode="passthrough"/>
</xsl:when>
<xsl:otherwise>
<para>
<xsl:apply-templates mode="passthrough"/>
</para>
</xsl:otherwise>
</xsl:choose>
</xsl:template>
<xsl:template match="parblock" mode="passthrough">
<xsl:apply-templates mode="passthrough"/>
</xsl:template>
<xsl:template match="copydoc" mode="passthrough">
<xsl:apply-templates mode="passthrough"/>