timprove table row and cell rendering a bit - webdump - [FORK] git://git.codemadness.org/webdump
 (HTM) git clone git://git.z3bra.org/webdump.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 553dfc4b2c06d714579eba44fbdf812520477a51
 (DIR) parent 7c84c8c7f112f38ecf911f274c50b9eca2dfd6e2
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu, 21 Nov 2019 00:03:22 +0100
       
       improve table row and cell rendering a bit
       
       Diffstat:
         M webdump.c                           |       5 ++---
       
       1 file changed, 2 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/webdump.c b/webdump.c
       t@@ -589,8 +589,6 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
                        newline();
                } else if (cur->tag.displaytype & DisplayTable) {
                        newline();
       -        } else if (cur->tag.displaytype & DisplayTableRow) {
       -                newline(); /* HACK: assume last cell */
                } else if (cur->tag.displaytype & DisplayList) {
                        newline();
                } else if (cur->tag.displaytype & DisplayListItem) {
       t@@ -695,7 +693,8 @@ xmltagstartparsed(XMLParser *p, const char *t, size_t tl, int isshort)
                } else if (cur->tag.displaytype & DisplayList) {
                        newline();
                } else if (cur->tag.displaytype & DisplayTableCell) {
       -                fputs("\t", stdout);
       +                if (parent && parent->nchildren > 1)
       +                        fputs("\t", stdout);
                } else if (cur->tag.displaytype & DisplayListItem) {
                        /* indent nested list items */
                        for (i = curnode; i; i--) {