workaround/hack: add whitespace after links... - tscrape - twitter scraper
 (HTM) git clone git://git.codemadness.org/tscrape
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit f92f2d068c213425f073d830a1dd8b86126168a5
 (DIR) parent 84d5c66d3efac4e9eeb431163af4313fb8b7f477
 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org>
       Date:   Thu, 10 Aug 2017 18:02:41 +0200
       
       workaround/hack: add whitespace after links...
       
       ... this makes sure words are not "sticked" together. duplicate whitespace
       and control characters are replaced by a single space already.
       
       Diffstat:
         M tscrape.c                           |       2 ++
       
       1 file changed, 2 insertions(+), 0 deletions(-)
       ---
 (DIR) diff --git a/tscrape.c b/tscrape.c
       @@ -191,6 +191,8 @@ xmltagstartparsed(XMLParser *x, const char *t, size_t tl, int isshort)
                                state |= Username;
                        }
                }
       +        if ((state & Text) && !strcmp(t, "a") && !isspace(text[0]))
       +                strlcat(text, " ", sizeof(text));
                classname[0] = '\0';
        }