From 099a5ef8f06c8e6aad182a5c1472e7e571a0fe92 Mon Sep 17 00:00:00 2001 From: Michal Privoznik Date: Sat, 22 Jul 2017 09:12:36 +0200 Subject: [PATCH] docs: Span cells if there's not doc text for enum val When generating HTML documentation we put enum values into a table so that we can display the value's name, numerical value and description (if it has one). Now the last part is problem. If the value doesn't have description the table row has just two cells and if it has one the row counts three cells. This makes HTML engines render the description into very little space - for instance see: html/libvirt-libvirt-domain.html#virDomainMemoryStatTags We can avoid this problem if we let the cell that corresponds to numerical value span over two cells if there's no description. Signed-off-by: Michal Privoznik Reviewed-by: Martin Kletzander --- docs/newapi.xsl | 25 +++++++++++++++---------- 1 file changed, 15 insertions(+), 10 deletions(-) diff --git a/docs/newapi.xsl b/docs/newapi.xsl index 815c1b9d77..9dd961507a 100644 --- a/docs/newapi.xsl +++ b/docs/newapi.xsl @@ -307,16 +307,21 @@ = - - - -
- - - -
- -
+ + + + +
+ + + +
+ +
+ + + +
-- GitLab