add more block-like tags - webdump - HTML to plain-text converter for webpages (HTM) git clone git://git.codemadness.org/webdump (DIR) Log (DIR) Files (DIR) Refs (DIR) README (DIR) LICENSE --- (DIR) commit 17c9e247a8df6c43cdec6bac73410dd35ece683c (DIR) parent 83d4fe1dd6996c779d73406a237c9fd470cda9b6 (HTM) Author: Hiltjo Posthuma <hiltjo@codemadness.org> Date: Tue, 12 Sep 2023 19:58:39 +0200 add more block-like tags Diffstat: M webdump.c | 3 +++ 1 file changed, 3 insertions(+), 0 deletions(-) --- (DIR) diff --git a/webdump.c b/webdump.c @@ -210,6 +210,7 @@ static struct tag tags[] = { { "a", DisplayInline, MarkupUnderline, 0, 0, 0, 0, 0, 0 }, { "area", DisplayInline, 0, 0, 1, 0, 0, 0, 0 }, { "article", DisplayBlock, 0, 0, 0, 0, 0, 0, 0 }, +{ "aside", DisplayBlock, 0, 0, 0, 0, 0, 0, 0 }, { "audio", DisplayInline, MarkupUnderline, 0, 0, 0, 0, 0, 0 }, { "b", DisplayInline, MarkupBold, 0, 0, 0, 0, 0, 0 }, { "base", DisplayInline, 0, 0, 1, 0, 0, 0, 0 }, @@ -222,6 +223,7 @@ static struct tag tags[] = { { "colgroup", DisplayInline, 0, 0, 0, 1, 0, 0, 0 }, { "dd", DisplayBlock, 0, 0, 0, 1, 0, 0, 4 }, { "del", DisplayInline, MarkupStrike, 0, 0, 0, 0, 0, 0 }, +{ "details", DisplayBlock, 0, 0, 0, 0, 0, 0, 0 }, { "div", DisplayBlock, 0, 0, 0, 0, 0, 0, 0 }, { "dl", DisplayBlock|DisplayDl, 0, 0, 0, 0, 0, 0, 0 }, { "dt", DisplayBlock, MarkupBold, 0, 0, 1, 0, 0, 0 }, @@ -263,6 +265,7 @@ static struct tag tags[] = { { "strike", DisplayInline, MarkupStrike, 0, 0, 0, 0, 0, 0 }, { "strong", DisplayInline, MarkupBold, 0, 0, 0, 0, 0, 0 }, { "style", DisplayNone, 0, 0, 0, 0, 0, 0, 0 }, +{ "summary", DisplayBlock, 0, 0, 0, 0, 0, 0, 0 }, { "table", DisplayTable, 0, 0, 0, 0, 0, 0, 0 }, { "tbody", DisplayInline, 0, DisplayTable, 0, 1, 0, 0, 0 }, { "td", DisplayTableCell, 0, DisplayTableRow, 0, 1, 0, 0, 0 },