workaround/hack: add whitespace after links... - tscrape - twitter scraper | |
git clone git://git.codemadness.org/tscrape | |
Log | |
Files | |
Refs | |
README | |
LICENSE | |
--- | |
commit f92f2d068c213425f073d830a1dd8b86126168a5 | |
parent 84d5c66d3efac4e9eeb431163af4313fb8b7f477 | |
Author: Hiltjo Posthuma <[email protected]> | |
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(-) | |
--- | |
diff --git a/tscrape.c b/tscrape.c | |
@@ -191,6 +191,8 @@ xmltagstartparsed(XMLParser *x, const char *t, size_t tl, i… | |
state |= Username; | |
} | |
} | |
+ if ((state & Text) && !strcmp(t, "a") && !isspace(text[0])) | |
+ strlcat(text, " ", sizeof(text)); | |
classname[0] = '\0'; | |
} | |