shithub: riscv

Download patch

ref: 9b7c9787930fe88c2faaa92255bc8c364280cf6a
parent: 6411efcde8e9fea9c7a791a76578823bfe0942cb
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sun Mar 15 14:01:06 EDT 2015

mothra: <del>, <ins>, <wbr>

--- a/sys/src/cmd/mothra/html.h
+++ b/sys/src/cmd/mothra/html.h
@@ -146,6 +146,7 @@
 	Tag_cite,
 	Tag_code,
 	Tag_dd,
+	Tag_del,
 	Tag_div,
 	Tag_dfn,
 	Tag_dir,
@@ -169,6 +170,7 @@
 	Tag_iframe,
 	Tag_img,
 	Tag_input,
+	Tag_ins,
 	Tag_isindex,
 	Tag_kbd,
 	Tag_key,
@@ -203,6 +205,7 @@
 	Tag_ul,
 	Tag_var,
 	Tag_video,
+	Tag_wbr,
 	Tag_xmp,
 
 	Tag_end,	/* also used to indicate unrecognized start tag */
--- a/sys/src/cmd/mothra/html.syntax.c
+++ b/sys/src/cmd/mothra/html.syntax.c
@@ -23,6 +23,7 @@
 [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_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_ul]	"ul",		END,
 [Tag_var]	"var",		END,
 [Tag_video]	"video",	NOEND,
+[Tag_wbr]	"wbr",		NOEND,
 [Tag_xmp]	"xmp",		END,
 };
--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -880,6 +880,7 @@
 			break;
 		case Tag_s:
 		case Tag_strike:
+		case Tag_del:
 			g.state->strike=1;
 			break;
 		case Tag_blockquot:
@@ -899,6 +900,7 @@
 			break;
 		case Tag_div:
 		case Tag_br:
+		case Tag_wbr:
 			g.spacc=0;
 			g.linebrk=1;
 			break;
@@ -944,6 +946,7 @@
 			break;
 		case Tag_u:
 			htmlerror(g.name, g.lineno, "<u> deprecated");
+		case Tag_ins:
 		case Tag_em:
 		case Tag_i:
 		case Tag_var: