mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2024-12-22 13:45:38 +00:00
docs: newapi: Fix generation of type definition tables
Ensure that all rows have 3 columns and avoid generation of emtpy elements which would be turned by the XML formatter into non-pair td/tr tags which don't work properly with HTML5 parsers. Signed-off-by: Peter Krempa <pkrempa@redhat.com> Reviewed-by: Pavel Hrdina <phrdina@redhat.com>
This commit is contained in:
parent
620cbfaea5
commit
c472736062
@ -384,7 +384,7 @@
|
|||||||
<xsl:for-each select="field">
|
<xsl:for-each select="field">
|
||||||
<xsl:choose>
|
<xsl:choose>
|
||||||
<xsl:when test='@type = "union"'>
|
<xsl:when test='@type = "union"'>
|
||||||
<tr><td><span class="keyword">union</span> {</td></tr>
|
<tr><td colspan="3"><span class="keyword">union</span> {</td></tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><table>
|
<td><table>
|
||||||
<xsl:for-each select="union/field">
|
<xsl:for-each select="union/field">
|
||||||
@ -397,31 +397,35 @@
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td><xsl:value-of select="@name"/></td>
|
<td><xsl:value-of select="@name"/></td>
|
||||||
<xsl:if test="@info != ''">
|
|
||||||
<td>
|
<td>
|
||||||
|
<xsl:if test="@info != ''">
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<xsl:call-template name="dumptext">
|
<xsl:call-template name="dumptext">
|
||||||
<xsl:with-param name="text" select="@info"/>
|
<xsl:with-param name="text" select="@info"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:comment> </xsl:comment>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</xsl:for-each>
|
</xsl:for-each>
|
||||||
</table></td>
|
</table></td>
|
||||||
<td></td></tr>
|
<td colspan="2"><xsl:comment> </xsl:comment></td>
|
||||||
<tr><td>}</td>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td>}</td>
|
||||||
<td><xsl:value-of select="@name"/></td>
|
<td><xsl:value-of select="@name"/></td>
|
||||||
<xsl:if test="@info != ''">
|
|
||||||
<td>
|
<td>
|
||||||
|
<xsl:if test="@info != ''">
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<xsl:call-template name="dumptext">
|
<xsl:call-template name="dumptext">
|
||||||
<xsl:with-param name="text" select="@info"/>
|
<xsl:with-param name="text" select="@info"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
<td></td></tr>
|
<xsl:comment> </xsl:comment>
|
||||||
|
</td>
|
||||||
|
</tr>
|
||||||
</xsl:when>
|
</xsl:when>
|
||||||
<xsl:otherwise>
|
<xsl:otherwise>
|
||||||
<tr>
|
<tr>
|
||||||
@ -433,15 +437,16 @@
|
|||||||
</span>
|
</span>
|
||||||
</td>
|
</td>
|
||||||
<td><xsl:value-of select="@name"/></td>
|
<td><xsl:value-of select="@name"/></td>
|
||||||
<xsl:if test="@info != ''">
|
|
||||||
<td>
|
<td>
|
||||||
|
<xsl:if test="@info != ''">
|
||||||
<div class="comment">
|
<div class="comment">
|
||||||
<xsl:call-template name="dumptext">
|
<xsl:call-template name="dumptext">
|
||||||
<xsl:with-param name="text" select="@info"/>
|
<xsl:with-param name="text" select="@info"/>
|
||||||
</xsl:call-template>
|
</xsl:call-template>
|
||||||
</div>
|
</div>
|
||||||
</td>
|
|
||||||
</xsl:if>
|
</xsl:if>
|
||||||
|
<xsl:comment> </xsl:comment>
|
||||||
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</xsl:otherwise>
|
</xsl:otherwise>
|
||||||
</xsl:choose>
|
</xsl:choose>
|
||||||
|
Loading…
Reference in New Issue
Block a user