diff --git a/src/document/html/parser.c b/src/document/html/parser.c index 117b6ba9f..89869c19c 100644 --- a/src/document/html/parser.c +++ b/src/document/html/parser.c @@ -702,7 +702,7 @@ get_image_map(unsigned char *head, unsigned char *pos, unsigned char *eof, -struct html_element * +void * init_html_parser_state(struct html_context *html_context, enum html_element_mortality_type type, int align, int margin, int width) @@ -728,8 +728,10 @@ init_html_parser_state(struct html_context *html_context, void done_html_parser_state(struct html_context *html_context, - struct html_element *element) + void *state) { + struct html_element *element = state; + html_context->line_breax = 1; while (html_top != element) {