ref: 3bf0387b487c4b1e9c59364c694bdfcf9965e413
parent: b7fb0f0c9dc2981f0af9d982e062c48750495855
author: cinap_lenrek <cinap_lenrek@gmx.de>
date: Sat Jul 7 21:06:31 EDT 2012
mothra: handle span and div, helps to resynchronization on html errors
--- a/sys/src/cmd/mothra/html.h
+++ b/sys/src/cmd/mothra/html.h
@@ -176,6 +176,7 @@
Tag_samp,
Tag_script,
Tag_select,
+ Tag_span,
Tag_strong,
Tag_style,
Tag_source,
--- a/sys/src/cmd/mothra/html.syntax.c
+++ b/sys/src/cmd/mothra/html.syntax.c
@@ -25,7 +25,7 @@
[Tag_dd] "dd", NOEND, /* OPTEND */
[Tag_dfn] "dfn", END,
[Tag_dir] "dir", END,
-[Tag_div] "div", NOEND, /* OPTEND */
+[Tag_div] "div", END, /* OPTEND */
[Tag_dl] "dl", END,
[Tag_dt] "dt", NOEND, /* OPTEND */
[Tag_em] "em", END,
@@ -65,6 +65,7 @@
[Tag_samp] "samp", END,
[Tag_script] "script", END,
[Tag_select] "select", END,
+[Tag_span] "span", END,
[Tag_strong] "strong", END,
[Tag_style] "style", END,
[Tag_source] "source", NOEND,
--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -813,6 +813,7 @@
g.spacc=0;
g.linebrk=1;
break;
+ case Tag_span:
case Tag_center:
/* more to come */
break;
--
⑨