aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-08-23 23:04:31 +0200
committerDean Camera <dean@fourwalledcubicle.com>2013-08-23 23:04:31 +0200
commitfbe2982858ae5f805e9b0111d1a2c260694523d7 (patch)
tree5a71b667a576e05850da1bf066eb303b3deb3e5c /LUFA/StudioIntegration
parentaded8373cc07cc749b6ca0f862ba119828f26601 (diff)
downloadlufa-fbe2982858ae5f805e9b0111d1a2c260694523d7.tar.gz
lufa-fbe2982858ae5f805e9b0111d1a2c260694523d7.tar.bz2
lufa-fbe2982858ae5f805e9b0111d1a2c260694523d7.zip
Update to latest Doxygen configurations, patch Doxygen->Docbook transform due to changes in the code fragment output in the Doxygen XML.
Diffstat (limited to 'LUFA/StudioIntegration')
-rw-r--r--LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt28
1 files changed, 24 insertions, 4 deletions
diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
index 111b75aae..f1e923988 100644
--- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
+++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
@@ -729,19 +729,39 @@
<xsl:template match="programlisting">
<programlisting language="c">
- <xsl:for-each select="codeline[position() > 1 or highlight]">
- <xsl:apply-templates select="."/>
- <xsl:text>&#10;</xsl:text>
- </xsl:for-each>
+ <xsl:apply-templates/>
</programlisting>
</xsl:template>
+ <xsl:template match="codeline">
+ <xsl:apply-templates/>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:template>
+
+ <xsl:template match="codeline[last()]">
+ <xsl:if test="text() != '*'">
+ <xsl:apply-templates/>
+ </xsl:if>
+ </xsl:template>
+
<xsl:template match="highlight">
<emphasis role="{@class}">
<xsl:apply-templates/>
</emphasis>
</xsl:template>
+ <xsl:template match="highlight[1]/text()">
+ <xsl:choose>
+ <xsl:when test="substring(., 1, 1) = '*'">
+ <xsl:value-of select="substring(., 2)"/>
+ </xsl:when>
+
+ <xsl:otherwise>
+ <xsl:value-of select="."/>
+ </xsl:otherwise>
+ </xsl:choose>
+ </xsl:template>
+
<xsl:template match="sp[ancestor::codeline]">
<xsl:text> </xsl:text>
</xsl:template>