summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@gmx.de>2012-07-08 01:06:31 +0200
committercinap_lenrek <cinap_lenrek@gmx.de>2012-07-08 01:06:31 +0200
commit2d09d805f3b08db1c4dc0cfc1c1382a6a3182abb (patch)
treed7e56cacd6d27d14f5465599090d1bab58c7d9fa
parent7a704e4ab6c826ef8317040688c99044f0d46ab9 (diff)
mothra: handle span and div, helps to resynchronization on html errors
-rw-r--r--sys/src/cmd/mothra/html.h1
-rw-r--r--sys/src/cmd/mothra/html.syntax.c3
-rw-r--r--sys/src/cmd/mothra/rdhtml.c1
3 files changed, 4 insertions, 1 deletions
diff --git a/sys/src/cmd/mothra/html.h b/sys/src/cmd/mothra/html.h
index 7654845a3..35db0de35 100644
--- a/sys/src/cmd/mothra/html.h
+++ b/sys/src/cmd/mothra/html.h
@@ -176,6 +176,7 @@ enum{
Tag_samp,
Tag_script,
Tag_select,
+ Tag_span,
Tag_strong,
Tag_style,
Tag_source,
diff --git a/sys/src/cmd/mothra/html.syntax.c b/sys/src/cmd/mothra/html.syntax.c
index b043b3f92..87e44016d 100644
--- a/sys/src/cmd/mothra/html.syntax.c
+++ b/sys/src/cmd/mothra/html.syntax.c
@@ -25,7 +25,7 @@ Tag tag[]={
[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 tag[]={
[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,
diff --git a/sys/src/cmd/mothra/rdhtml.c b/sys/src/cmd/mothra/rdhtml.c
index 1a4b33f18..be8378dbd 100644
--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -813,6 +813,7 @@ void plrdhtml(char *name, int fd, Www *dst){
g.spacc=0;
g.linebrk=1;
break;
+ case Tag_span:
case Tag_center:
/* more to come */
break;