doc: don't start a variable list if we have no sub-elements
authorPeter Hutterer <peter.hutterer@who-t.net>
Tue, 2 Apr 2013 00:09:12 +0000 (10:09 +1000)
committerKristian Høgsberg <krh@bitplanet.net>
Wed, 3 Apr 2013 19:44:50 +0000 (15:44 -0400)
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
doc/Wayland/doxygen-to-publican.xsl

index 864237c..160b124 100644 (file)
          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>