Skip to content

Commit

Permalink
[html] line break after footer and header. Refs #347
Browse files Browse the repository at this point in the history
  • Loading branch information
rkd77 committed Dec 29, 2024
1 parent c63931e commit 2aed70b
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/document/html/parser/parse.c
Original file line number Diff line number Diff line change
Expand Up @@ -483,6 +483,7 @@ static struct element_info elements[] = {
{"FIGURE", html_linebrk, NULL, 1, ET_NESTABLE },
{"FIXED", html_fixed, NULL, 0, ET_NESTABLE },
{"FONT", html_font, NULL, 0, ET_NESTABLE },
{"FOOTER", html_linebrk, NULL, 1, ET_NON_NESTABLE},
{"FORM", html_form, NULL, 1, ET_NESTABLE },
{"FRAME", html_frame, NULL, 1, ET_NON_PAIRABLE},
{"FRAMESET", html_frameset, NULL, 1, ET_NESTABLE },
Expand All @@ -493,6 +494,7 @@ static struct element_info elements[] = {
{"H5", html_h5, NULL, 2, ET_NON_NESTABLE},
{"H6", html_h6, NULL, 2, ET_NON_NESTABLE},
{"HEAD", html_head, NULL, 0, ET_NESTABLE },
{"HEADER", html_linebrk, NULL, 1, ET_NON_NESTABLE},
{"HR", html_hr, NULL, 2, ET_NON_PAIRABLE},
{"HTML", html_html, html_html_close, 0, ET_NESTABLE },
{"I", html_italic, NULL, 0, ET_NESTABLE },
Expand Down
11 changes: 11 additions & 0 deletions test/header.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<section>
<header>
Header
</header>

Section

<footer>
Footer
</footer>
</section>

0 comments on commit 2aed70b

Please sign in to comment.