aboutsummaryrefslogtreecommitdiffstats
path: root/LUFA/StudioIntegration
diff options
context:
space:
mode:
authorDean Camera <dean@fourwalledcubicle.com>2013-08-23 23:27:09 +0200
committerDean Camera <dean@fourwalledcubicle.com>2013-08-23 23:27:09 +0200
commit8cd0b383c59be3b15743beb8bda72cf5afbc8531 (patch)
tree3f29e373dd564118cee3749ad82e1983baaa6868 /LUFA/StudioIntegration
parentfbe2982858ae5f805e9b0111d1a2c260694523d7 (diff)
downloadlufa-8cd0b383c59be3b15743beb8bda72cf5afbc8531.tar.gz
lufa-8cd0b383c59be3b15743beb8bda72cf5afbc8531.tar.bz2
lufa-8cd0b383c59be3b15743beb8bda72cf5afbc8531.zip
Fix double-spaced code samples in the Docbook transform output.
Diffstat (limited to 'LUFA/StudioIntegration')
-rw-r--r--LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt16
1 files changed, 4 insertions, 12 deletions
diff --git a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
index f1e923988..2ebda6d5d 100644
--- a/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
+++ b/LUFA/StudioIntegration/HV1/lufa_docbook_transform.xslt
@@ -729,21 +729,13 @@
<xsl:template match="programlisting">
<programlisting language="c">
- <xsl:apply-templates/>
+ <xsl:for-each select="codeline[position() > 1 or highlight]">
+ <xsl:apply-templates select="."/>
+ <xsl:text>&#10;</xsl:text>
+ </xsl:for-each>
</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/>