aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2020-10-19 03:29:08 +0200
committerdec05eba <dec05eba@protonmail.com>2020-10-19 03:29:08 +0200
commit63c974c5af66ca372ecf46799649e1e2b8a85c0f (patch)
treec068ba8cd862f7986a7165da296f4bd0f8888940
parentfdfdf20d085a7c705477d878c11ed208577facb1 (diff)
Take into consideration < /html> and <br/ >
-rw-r--r--.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idxbin0 -> 5996 bytes
-rw-r--r--.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idxbin0 -> 2786 bytes
-rw-r--r--src/HtmlParser.c2
3 files changed, 2 insertions, 0 deletions
diff --git a/.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idx b/.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idx
new file mode 100644
index 0000000..2b2c836
--- /dev/null
+++ b/.clangd/index/HtmlParser.c.548BE05F5A5E23B4.idx
Binary files differ
diff --git a/.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idx b/.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idx
new file mode 100644
index 0000000..b6373d3
--- /dev/null
+++ b/.clangd/index/HtmlParser.h.C57D3D53811DE2F5.idx
Binary files differ
diff --git a/src/HtmlParser.c b/src/HtmlParser.c
index 861168e..f01a3af 100644
--- a/src/HtmlParser.c
+++ b/src/HtmlParser.c
@@ -323,6 +323,7 @@ static void html_parser_parse_tag_start(HtmlParser *self) {
}
return;
} else if(c == '/') {
+ html_parser_skip_whitespace(self);
if(html_parser_peek_char(self) == '>') {
html_parser_advance_char(self);
if(tag_name_found) {
@@ -457,6 +458,7 @@ void html_parser_parse(HtmlParser *self) {
for(;;) {
char c = html_parser_next_char(self);
if(c == '<') {
+ html_parser_skip_whitespace(self);
if(html_parser_peek_char(self) == '/') {
html_parser_advance_char(self);
html_parser_parse_tag_end(self);