From 47a8ff9979ba00f8e367b2d3fcde97106d81c6cb Mon Sep 17 00:00:00 2001 From: Peter Krempa Date: Thu, 29 Feb 2024 13:06:39 +0100 Subject: [PATCH] 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 --- docs/newapi.xsl | 40 +++++++++++++++++++++++++--------------- 1 file changed, 25 insertions(+), 15 deletions(-) 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 -
+