ref: ff2ce77f7bb4eef8e0b64b44110a60816191ec29
parent: fdbd1ca892bbfbad42d5649fe053bb9152e33e24
author: stanley lieber <stanley.lieber@gmail.com>
date: Tue Nov 8 14:42:24 EST 2011
mothra: treat <div> as <p>
--- a/sys/src/cmd/mothra/html.h
+++ b/sys/src/cmd/mothra/html.h
@@ -136,6 +136,7 @@
Tag_cite,
Tag_code,
Tag_dd,
+ Tag_div,
Tag_dfn,
Tag_dir,
Tag_dl,
--- a/sys/src/cmd/mothra/html.syntax.c
+++ b/sys/src/cmd/mothra/html.syntax.c
@@ -25,6 +25,7 @@
[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,
--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -910,6 +910,7 @@
break;
}
break;
+ case Tag_div:
case Tag_p:
pl_linespace(&g);
g.linebrk=1;
--
⑨