diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-03-15 18:01:06 +0100 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2015-03-15 18:01:06 +0100 |
commit | 9b7c9787930fe88c2faaa92255bc8c364280cf6a (patch) | |
tree | 8844fd20729958dafc9e9e258481501e78ae0111 | |
parent | 6411efcde8e9fea9c7a791a76578823bfe0942cb (diff) |
mothra: <del>, <ins>, <wbr>
-rw-r--r-- | sys/src/cmd/mothra/html.h | 3 | ||||
-rw-r--r-- | sys/src/cmd/mothra/html.syntax.c | 3 | ||||
-rw-r--r-- | sys/src/cmd/mothra/rdhtml.c | 3 |
3 files changed, 9 insertions, 0 deletions
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, "<u> deprecated"); + case Tag_ins: case Tag_em: case Tag_i: case Tag_var: |