From: Peter Krempa Date: Thu, 3 Nov 2022 09:45:56 +0000 (+0100) Subject: docs: xsl: Don't format empty sections in API manual X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=ed2109d2720af25592acb999475d510ca7c36479;p=libvirt.git docs: xsl: Don't format empty sections in API manual The LXC module has no exported 'Types' but the XSL template which generates the 'libvirt-libvirt-lxc.html' page would try to format it anyways. This would result in an empty non-pair version of the '
'
tag to be used in the page, which didn't render well with modern
browsers for some reason. All following sections would become children
of the non-pair 
.

Fix the XSL template to not generate empty 'Types' or 'Functions'
sections similarly to how we do with 'Macros'.

Signed-off-by: Peter Krempa 
Reviewed-by: Ján Tomko 
---

diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index d48b1fbecd..7b0085930f 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -756,18 +756,22 @@
             
           
-

Types

-
-          
-            
-          
-        
-

Functions

-
-          
-            
-          
-        
+ +

Types

+
+            
+              
+            
+          
+
+ +

Functions

+
+            
+              
+            
+          
+

Description

@@ -777,14 +781,18 @@ -

Types

- - - -

Functions

- - - + +

Types

+ + + +
+ +

Functions

+ + + +