aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorDEC05EBA <dec05eba@protonmail.com>2020-01-01 18:14:32 +0100
committerDEC05EBA <dec05eba@protonmail.com>2020-01-01 18:14:32 +0100
commit667a9e8f466f5c97b962b6885d575e6b01405542 (patch)
tree7757a93990565ee759aef6133faa28924d52753c /include
parent8d8e23320e48f1d8fd98c3c914696f6fe0f7161e (diff)
Do not skip whitespaces in text in pre tags
Diffstat (limited to 'include')
-rw-r--r--include/HtmlParser.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/HtmlParser.h b/include/HtmlParser.h
index b01a59e..a60e6d5 100644
--- a/include/HtmlParser.h
+++ b/include/HtmlParser.h
@@ -41,11 +41,13 @@ struct HtmlParser {
int is_tag_void;
int inside_script_tag;
+ int pre_tag_depth;
size_t unclosed_tags_offset;
HtmlStringView unclosed_tags[UNCLOSED_TAGS_SIZE];
};
+/* Note: HTML_PARSE_TAG_START is guaranteed to be called for a tag before HTML_PARSE_TAG_END */
void html_parser_init(HtmlParser *self, const char *html_source, size_t len, HtmlParseCallback parse_callback, void *userdata);
void html_parser_deinit(HtmlParser *self);