mirror of
https://github.com/oliverschmidt/contiki.git
synced 2024-12-21 03:30:01 +00:00
Improved dicarding of text in the HTML header.
Plain text in the HTML header (think of <title>text</title>) is collected as usual. The decision to discard it is triggered by the first withspace following. In the usual case of the <body> 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.
This commit is contained in:
parent
72cc19c680
commit
957ac63a7c
@ -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:
|
||||
|
Loading…
Reference in New Issue
Block a user