Skip to content
Snippets Groups Projects
Commit a428c9b8 authored by Vivek Das Mohapatra's avatar Vivek Das Mohapatra
Browse files

Update devhelp2man.xslt to cope with new section in master xml source

The Types and Values section now gets written by the gtk-doc
generator, and devhelp2man.xslt needs to know not to slurp
parameters from it into the function signature.
parent cda04efe
No related branches found
No related tags found
1 merge request!311Build capsule-capture-libs from a bundled copy of libcapsule
......@@ -85,7 +85,7 @@ License along with libcapsule. If not, see <http://www.gnu.org/licenses/>.
</xsl:if>
</xsl:template>
<xsl:template name="paramdef" match="parameter">
<xsl:template name="paramdef" match="parameter" mode="funcsig">
<xsl:param name="tok" select="string:tokenize(., ' ')"/>
<xsl:param name="last" select="ext:node-set($tok)[last()]"/>
<xsl:param name="name" select="string:tokenize($last, '*')"/>
......@@ -112,7 +112,7 @@ License along with libcapsule. If not, see <http://www.gnu.org/licenses/>.
<xsl:value-of select="indexterm/primary"/>
</xsl:element>
</xsl:element>
<xsl:apply-templates select="programlisting"/>
<xsl:apply-templates select="programlisting" mode="funcsig"/>
</xsl:element>
</xsl:if>
</xsl:template>
......@@ -164,15 +164,18 @@ License along with libcapsule. If not, see <http://www.gnu.org/licenses/>.
</xsl:element>
<xsl:element name="refsect1">
<xsl:element name="title">Description:</xsl:element>
<xsl:apply-templates select="refsect1[@role='details']/refsect2"
mode="voiddesc"/>
<xsl:apply-templates
select="refsect1[@role='details' and contains(@id,'functions_details')]/refsect2"
mode="voiddesc"/>
<xsl:element name="refsect2">
<xsl:apply-templates select="refsect1[@role='details']/refsect2"
<xsl:apply-templates
select="refsect1[@role='details' and contains(@id,'functions_details')]/refsect2"
mode="paramdesc"/>
</xsl:element>
<xsl:element name="refsect2">
<xsl:apply-templates select="refsect1[@role='details']/refsect2"
mode="retdesc"/>
<xsl:apply-templates
select="refsect1[@role='details' and contains(@id,'functions_details')]/refsect2"
mode="retdesc"/>
</xsl:element>
</xsl:element>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment