mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 05:35:25 +00:00
docs: newapi: Properly skip ACL entries if empty
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> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
6f4485a453
commit
620cbfaea5
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user