[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[libvirt] [PATCH v3 06/13] docs: only generate function argument info for args with a description



When function arguments or return values lack a description there's no
use in generating a meaningless "ARG1: " stanza.

Signed-off-by: Claudio Bley <cbley av-test de>
---
 docs/newapi.xsl |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index 0d32e55..fb95c44 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -533,9 +533,9 @@
     </xsl:call-template>
     </div><xsl:text>
 </xsl:text>
-    <xsl:if test="arg | return/@info">
+    <xsl:if test="arg[ info] | return/@info">
       <dl class="variablelist">
-        <xsl:for-each select="arg">
+        <xsl:for-each select="arg[ info]">
           <dt><xsl:value-of select="@name"/></dt>
           <dd>
             <xsl:call-template name="dumptext">
-- 
1.7.9.5


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]