From 957ac63a7c06443d5b15710f86359dd758794b23 Mon Sep 17 00:00:00 2001 From: Oliver Schmidt Date: Tue, 11 Oct 2016 11:25:31 +0200 Subject: [PATCH] Improved dicarding of text in the HTML header. Plain text in the HTML header (think of text) is collected as usual. The decision to discard it is triggered by the first withspace following. In the usual case of the no preceeded by any whitespace this means that by the point the first whitespace is encountered we're not in "discard mode" anymore and therefore incorrectly render the text. Explicitly calling do_word() just before leaving "discard mode" discards all text collected so far. --- apps/webbrowser/htmlparser.c | 1 + 1 file changed, 1 insertion(+) diff --git a/apps/webbrowser/htmlparser.c b/apps/webbrowser/htmlparser.c index b0d8cfdc3..07653be8e 100644 --- a/apps/webbrowser/htmlparser.c +++ b/apps/webbrowser/htmlparser.c @@ -410,6 +410,7 @@ parse_tag(void) switch_majorstate(s.lastmajorstate); break; case TAG_BODY: + do_word(); s.majorstate = s.lastmajorstate = MAJORSTATE_BODY; break; case TAG_IMG: