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

Claudio Bley cbley at av-test.de
Wed Jan 30 15:38:11 UTC 2013


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 at 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




More information about the libvir-list mailing list