Skip to content
Snippets Groups Projects
Commit 98250ff6 authored by g0dil's avatar g0dil
Browse files

Fix parameter formating

parent 488694b6
No related branches found
No related tags found
No related merge requests found
...@@ -2,46 +2,45 @@ ...@@ -2,46 +2,45 @@
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0"> version="1.0">
<xsl:output method="html" encoding="html" /> <xsl:output method="html" encoding="html"/>
<xsl:template match="/"> <xsl:template name="add-class">
<html> <xsl:param name="class"/>
<body bgcolor="#FFFFFF">
<xsl:apply-templates/>
</body>
</html>
</xsl:template>
<xsl:template match="dl[dt/b/a/text()='Bug:']">
<xsl:copy> <xsl:copy>
<xsl:for-each select="@*"><xsl:copy/></xsl:for-each> <xsl:for-each select="@*"><xsl:copy/></xsl:for-each>
<xsl:attribute name="class">xref-bug</xsl:attribute> <xsl:attribute name="class"><xsl:value-of select="$class"/></xsl:attribute>
<xsl:apply-templates/> <xsl:apply-templates/>
</xsl:copy> </xsl:copy>
</xsl:template> </xsl:template>
<xsl:template match="dl[dt/b/a/text()='Fixme:']"> <xsl:template match="dl[dt/b/a/text()='Bug:']">
<xsl:copy> <xsl:call-template name="add-class">
<xsl:for-each select="@*"><xsl:copy/></xsl:for-each> <xsl:with-param name="class">xref-bug</xsl:with-param>
<xsl:attribute name="class">xref-fixme</xsl:attribute> </xsl:call-template>
<xsl:apply-templates/> </xsl:template>
</xsl:copy>
<xsl:template match="dl[dt/b/a/text()='Fix:']">
<xsl:call-template name="add-class">
<xsl:with-param name="class">xref-fix</xsl:with-param>
</xsl:call-template>
</xsl:template> </xsl:template>
<xsl:template match="dl[dt/b/a/text()='Todo:']"> <xsl:template match="dl[dt/b/a/text()='Todo:']">
<xsl:copy> <xsl:call-template name="add-class">
<xsl:for-each select="@*"><xsl:copy/></xsl:for-each> <xsl:with-param name="class">xref-todo</xsl:with-param>
<xsl:attribute name="class">xref-todo</xsl:attribute> </xsl:call-template>
<xsl:apply-templates/>
</xsl:copy>
</xsl:template> </xsl:template>
<xsl:template match="dl[dt/b/a/text()='Idea:']"> <xsl:template match="dl[dt/b/a/text()='Idea:']">
<xsl:copy> <xsl:call-template name="add-class">
<xsl:for-each select="@*"><xsl:copy/></xsl:for-each> <xsl:with-param name="class">xref-idea</xsl:with-param>
<xsl:attribute name="class">xref-idea</xsl:attribute> </xsl:call-template>
<xsl:apply-templates/> </xsl:template>
</xsl:copy>
<xsl:template match="dl[dt/b/text()='Parameters:']">
<xsl:call-template name="add-class">
<xsl:with-param name="class">parameters</xsl:with-param>
</xsl:call-template>
</xsl:template> </xsl:template>
<xsl:template match="*"> <xsl:template match="*">
......
...@@ -252,3 +252,7 @@ div.qindex { ...@@ -252,3 +252,7 @@ div.qindex {
padding: 2px; padding: 2px;
line-height: 140%; line-height: 140%;
} }
dl.parameters dd table {
width: auto;
}
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment