doc: Translate doxygen <sp/> tags to spaces
authorBenjamin Herr <ben@0x539.de>
Mon, 29 Sep 2014 15:26:13 +0000 (17:26 +0200)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Mon, 3 Nov 2014 13:53:01 +0000 (15:53 +0200)
Doxygen represents all spacing in code blocks with <sp/> tags, so these
need to be turned back into spaces.

Signed-off-by: Benjamin Herr <ben@0x539.de>
doc/publican/doxygen-to-publican.xsl

index 8ef5614..b6ca5f3 100644 (file)
   <emphasis>Note: <xsl:apply-templates /></emphasis>
 </xsl:template>
 
+<xsl:template match="programlisting//sp">
+  <xsl:text> </xsl:text>
+</xsl:template>
+
 <xsl:template match="programlisting">
   <programlisting><xsl:apply-templates /></programlisting>
 </xsl:template>