[prev in list] [next in list] [prev in thread] [next in thread] 

List:       libvir-list
Subject:    [PATCH 8/9] docs: newapi: Properly skip ACL entries if empty
From:       Peter Krempa <pkrempa () redhat ! com>
Date:       2024-02-29 14:58:22
Message-ID: 252c2cda7ac30e17f59df5416b3056fbd07cef7d.1709218314.git.pkrempa () redhat ! com
[Download RAW message or body]

The source document can contain an empty '@flags' attribute which passes
the test but generates an empty element. Check that flags is non-empty
to trigger the fallback.

Signed-off-by: Peter Krempa <pkrempa@redhat.com>
---
 docs/newapi.xsl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/newapi.xsl b/docs/newapi.xsl
index 36bb41c877..51f159a2f8 100644
--- a/docs/newapi.xsl
+++ b/docs/newapi.xsl
@@ -62,7 +62,7 @@
       <td><a href="../acl.html#object_{@object}"><xsl:value-of select="@object"/></a></td>
       <td><a href="../acl.html#perm_{@object}_{@perm}"><xsl:value-of select="@perm"/></a></td>
       <xsl:choose>
-        <xsl:when test="@flags">
+        <xsl:when test="@flags != ''">
           <td><xsl:value-of select="@flags"/></td>
         </xsl:when>
         <xsl:otherwise>
-- 
2.43.0
_______________________________________________
Devel mailing list -- devel@lists.libvirt.org
To unsubscribe send an email to devel-leave@lists.libvirt.org

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic