tadd <br> handling in tagstart - 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 22ff00cdaf8d9737890239664b27dac1a84bfbaf
 (DIR) parent 3ec685a587b8404367c9c0fc6e2ec6a8f1b40c77
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Fri, 22 Nov 2019 13:12:47 +0100
       
       add <br> handling in tagstart
       
       tthis makes sure both <br/> and <br> works
       
       (the invalid </br> doesn't work)
       
       Diffstat:
         M webdump.c                           |       8 ++------
       
       1 file changed, 2 insertions(+), 6 deletions(-)
       ---
 (DIR) diff --git a/webdump.c b/webdump.c
       t@@ -628,11 +628,6 @@ xmltagend(XMLParser *p, const char *t, size_t tl, int isshort)
        #endif
                }
        
       -        /* specific tag handling */
       -        if (!strcasecmp(t, "br")) {
       -                newline();
       -        }
       -
                curnode--;
        }
        
       t@@ -744,10 +739,11 @@ xmltagstartparsed(XMLParser *p, const char *t, size_t tl, int isshort)
                if (cur->tag.displaytype & DisplayStrike)
                        printansi("\033[9m");
        
       -        /* specific tag handling */
                if (!strcasecmp(t, "hr")) { /* ruler */
                        for (i = 0; i < termwidth; i++)
                                putchar('-');
       +        } else if (!strcasecmp(t, "br")) {
       +                newline();
                }
        }