From 9b7c9787930fe88c2faaa92255bc8c364280cf6a Mon Sep 17 00:00:00 2001 From: cinap_lenrek Date: Sun, 15 Mar 2015 18:01:06 +0100 Subject: mothra: , , --- sys/src/cmd/mothra/html.h | 3 +++ sys/src/cmd/mothra/html.syntax.c | 3 +++ sys/src/cmd/mothra/rdhtml.c | 3 +++ 3 files changed, 9 insertions(+) diff --git a/sys/src/cmd/mothra/html.h b/sys/src/cmd/mothra/html.h index 951feeeb9..242f7947e 100644 --- a/sys/src/cmd/mothra/html.h +++ b/sys/src/cmd/mothra/html.h @@ -146,6 +146,7 @@ enum{ Tag_cite, Tag_code, Tag_dd, + Tag_del, Tag_div, Tag_dfn, Tag_dir, @@ -169,6 +170,7 @@ enum{ Tag_iframe, Tag_img, Tag_input, + Tag_ins, Tag_isindex, Tag_kbd, Tag_key, @@ -203,6 +205,7 @@ enum{ Tag_ul, Tag_var, Tag_video, + Tag_wbr, Tag_xmp, Tag_end, /* also used to indicate unrecognized start tag */ diff --git a/sys/src/cmd/mothra/html.syntax.c b/sys/src/cmd/mothra/html.syntax.c index a6912d329..98b8dd0af 100644 --- a/sys/src/cmd/mothra/html.syntax.c +++ b/sys/src/cmd/mothra/html.syntax.c @@ -23,6 +23,7 @@ Tag tag[]={ [Tag_code] "code", END, [Tag_comment] "!--", NOEND, [Tag_dd] "dd", NOEND, /* OPTEND */ +[Tag_del] "del", END, [Tag_dfn] "dfn", END, [Tag_dir] "dir", END, [Tag_div] "div", END, /* OPTEND */ @@ -47,6 +48,7 @@ Tag tag[]={ [Tag_iframe] "iframe", NOEND, [Tag_img] "img", NOEND, [Tag_input] "input", NOEND, +[Tag_ins] "ins", END, [Tag_isindex] "isindex", NOEND, [Tag_kbd] "kbd", END, [Tag_key] "key", END, @@ -81,5 +83,6 @@ Tag tag[]={ [Tag_ul] "ul", END, [Tag_var] "var", END, [Tag_video] "video", NOEND, +[Tag_wbr] "wbr", NOEND, [Tag_xmp] "xmp", END, }; diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c index aeee19429..5f53c8ecf 100644 --- a/sys/src/cmd/mothra/rdhtml.c +++ b/sys/src/cmd/mothra/rdhtml.c @@ -880,6 +880,7 @@ void plrdhtml(char *name, int fd, Www *dst){ break; case Tag_s: case Tag_strike: + case Tag_del: g.state->strike=1; break; case Tag_blockquot: @@ -899,6 +900,7 @@ void plrdhtml(char *name, int fd, Www *dst){ break; case Tag_div: case Tag_br: + case Tag_wbr: g.spacc=0; g.linebrk=1; break; @@ -944,6 +946,7 @@ void plrdhtml(char *name, int fd, Www *dst){ break; case Tag_u: htmlerror(g.name, g.lineno, " deprecated"); + case Tag_ins: case Tag_em: case Tag_i: case Tag_var: -- cgit v1.2.3