diff options
author | stanley lieber <stanley.lieber@gmail.com> | 2011-11-08 19:42:24 -0600 |
---|---|---|
committer | stanley lieber <stanley.lieber@gmail.com> | 2011-11-08 19:42:24 -0600 |
commit | e6935a3c4bfa6a2bfc318a41549fd3d1426aa6c4 (patch) | |
tree | d1cafd2e67e5b8bd040107ce977e97840ba4d592 /sys/src | |
parent | 03324ced4ffc9c8935cea37666be6372f1dbfe92 (diff) |
mothra: treat <div> as <p>
Diffstat (limited to 'sys/src')
-rw-r--r-- | sys/src/cmd/mothra/html.h | 1 | ||||
-rw-r--r-- | sys/src/cmd/mothra/html.syntax.c | 1 | ||||
-rw-r--r-- | sys/src/cmd/mothra/rdhtml.c | 1 |
3 files changed, 3 insertions, 0 deletions
diff --git a/sys/src/cmd/mothra/html.h b/sys/src/cmd/mothra/html.h index 61bc963a3..eb759244b 100644 --- a/sys/src/cmd/mothra/html.h +++ b/sys/src/cmd/mothra/html.h @@ -136,6 +136,7 @@ enum{ Tag_cite, Tag_code, Tag_dd, + Tag_div, Tag_dfn, Tag_dir, Tag_dl, diff --git a/sys/src/cmd/mothra/html.syntax.c b/sys/src/cmd/mothra/html.syntax.c index a1297149c..b043b3f92 100644 --- a/sys/src/cmd/mothra/html.syntax.c +++ b/sys/src/cmd/mothra/html.syntax.c @@ -25,6 +25,7 @@ Tag tag[]={ [Tag_dd] "dd", NOEND, /* OPTEND */ [Tag_dfn] "dfn", END, [Tag_dir] "dir", END, +[Tag_div] "div", NOEND, /* OPTEND */ [Tag_dl] "dl", END, [Tag_dt] "dt", NOEND, /* OPTEND */ [Tag_em] "em", END, diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c index 941fb199c..9000c4e15 100644 --- a/sys/src/cmd/mothra/rdhtml.c +++ b/sys/src/cmd/mothra/rdhtml.c @@ -910,6 +910,7 @@ void plrdhtml(char *name, int fd, Www *dst){ break; } break; + case Tag_div: case Tag_p: pl_linespace(&g); g.linebrk=1; |