From: Peter Krempa Date: Thu, 29 Feb 2024 12:06:39 +0000 (+0100) Subject: docs: newapi: Avoid empty
s when there is no description X-Git-Url: http://xenbits.xensource.com/gitweb?a=commitdiff_plain;h=47a8ff9979ba00f8e367b2d3fcde97106d81c6cb;p=libvirt.git docs: newapi: Avoid empty
s when there is no description The various objects we generate API for may have empty description in which case an empty div would be generated when processing the API description. As we're using XML output mode the generator would shorten such divs to the non-pair empty element version, which doesn't work well with HTML5 parsers requiring a pair tag for
Avoid empty description
elements altogether by skipping it if the description is empty. Signed-off-by: Peter Krempa Reviewed-by: Pavel Hrdina --- diff --git a/docs/newapi.xsl b/docs/newapi.xsl index b60680ae97..539e0a4175 100644 --- a/docs/newapi.xsl +++ b/docs/newapi.xsl @@ -222,6 +222,19 @@ + + + + + +
+ + + +
+
+
+ #define @@ -287,11 +300,10 @@

-
- + + description -
         enum 
@@ -343,11 +355,10 @@
         ;
       
-
- + + description -
@@ -452,11 +463,11 @@

#define 
-
- + + description -
+
@@ -604,11 +615,10 @@ ) -
- + + description -
@@ -680,11 +690,11 @@ ) -
- + + description -
+