reduce some newlines before the link references - webdump - HTML to plain-text converter for webpages
 (HTM) git clone git://git.codemadness.org/webdump
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit a30cb9a818546a1e7b651fa33e2f0164079b7bc5
 (DIR) parent 20fb149d1183220e2fee0cbfb6d3ac4f288bc67e
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu,  7 Sep 2023 18:35:58 +0200
       
       reduce some newlines before the link references
       
       Diffstat:
         M webdump.c                           |       8 ++++----
       
       1 file changed, 4 insertions(+), 4 deletions(-)
       ---
 (DIR) diff --git a/webdump.c b/webdump.c
       @@ -1346,7 +1346,7 @@ printlinkrefs(void)
                                dprintf(3, "%s\t%s\n", links_cur->type, links_cur->url);
                }
        
       -        printf("\n\nReferences\n\n");
       +        printf("\nReferences\n\n");
        
                i = 1;
                for (links_cur = links_head; links_cur; links_cur = links_cur->next) {
       @@ -2058,13 +2058,13 @@ main(int argc, char **argv)
                parser.getnext = getchar;
                xml_parse(&parser);
        
       -        if (showrefbottom || resources)
       -                printlinkrefs();
       -
                hflush();
                if (ncells > 0)
                        newline();
        
       +        if (showrefbottom || resources)
       +                printlinkrefs();
       +
                hflush();
                setmarkup(0);