[PATCH 3/3] doc: Translate doxygen <sp/> tags to spaces

Benjamin Herr ben at 0x539.de
Mon Sep 29 08:26:13 PDT 2014


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 at 0x539.de>
---
 doc/publican/doxygen-to-publican.xsl | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/doc/publican/doxygen-to-publican.xsl b/doc/publican/doxygen-to-publican.xsl
index 8ef5614..b6ca5f3 100644
--- a/doc/publican/doxygen-to-publican.xsl
+++ b/doc/publican/doxygen-to-publican.xsl
@@ -104,6 +104,10 @@
   <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>
-- 
2.1.1



More information about the wayland-devel mailing list