[PATCH 18/18] doc: don't start a variable list if we have no sub-elements

Peter Hutterer peter.hutterer at who-t.net
Mon Apr 1 17:09:12 PDT 2013


Signed-off-by: Peter Hutterer <peter.hutterer at who-t.net>
---
 doc/Wayland/doxygen-to-publican.xsl | 12 +++++++-----
 1 file changed, 7 insertions(+), 5 deletions(-)

diff --git a/doc/Wayland/doxygen-to-publican.xsl b/doc/Wayland/doxygen-to-publican.xsl
index 864237c..160b124 100644
--- a/doc/Wayland/doxygen-to-publican.xsl
+++ b/doc/Wayland/doxygen-to-publican.xsl
@@ -19,11 +19,13 @@
 	  the library.
     </para>
 
-    <para>
-    <variablelist>
-    <xsl:apply-templates select="/doxygen/compounddef" />
-    </variablelist>
-    </para>
+    <xsl:if test="/doxygen/compounddef[@kind='class']">
+      <para>
+        <variablelist>
+          <xsl:apply-templates select="/doxygen/compounddef" />
+        </variablelist>
+      </para>
+    </xsl:if>
 
     <para>Methods for the respective classes.</para>
 
-- 
1.8.1.4



More information about the wayland-devel mailing list