changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: mothra: <del>, <ins>, <wbr>

changeset 4347: 48947a421eed
parent 4346: 293098f5b0b5
child 4348: d62026e6ffe1
author: cinap_lenrek@felloff.net
date: Sun, 15 Mar 2015 18:01:06 +0100
files: sys/src/cmd/mothra/html.h sys/src/cmd/mothra/html.syntax.c sys/src/cmd/mothra/rdhtml.c
description: mothra: <del>, <ins>, <wbr>
     1.1--- a/sys/src/cmd/mothra/html.h
     1.2+++ b/sys/src/cmd/mothra/html.h
     1.3@@ -146,6 +146,7 @@ enum{
     1.4 	Tag_cite,
     1.5 	Tag_code,
     1.6 	Tag_dd,
     1.7+	Tag_del,
     1.8 	Tag_div,
     1.9 	Tag_dfn,
    1.10 	Tag_dir,
    1.11@@ -169,6 +170,7 @@ enum{
    1.12 	Tag_iframe,
    1.13 	Tag_img,
    1.14 	Tag_input,
    1.15+	Tag_ins,
    1.16 	Tag_isindex,
    1.17 	Tag_kbd,
    1.18 	Tag_key,
    1.19@@ -203,6 +205,7 @@ enum{
    1.20 	Tag_ul,
    1.21 	Tag_var,
    1.22 	Tag_video,
    1.23+	Tag_wbr,
    1.24 	Tag_xmp,
    1.25 
    1.26 	Tag_end,	/* also used to indicate unrecognized start tag */
     2.1--- a/sys/src/cmd/mothra/html.syntax.c
     2.2+++ b/sys/src/cmd/mothra/html.syntax.c
     2.3@@ -23,6 +23,7 @@ Tag tag[]={
     2.4 [Tag_code]	"code",		END,
     2.5 [Tag_comment]	"!--",		NOEND,
     2.6 [Tag_dd]	"dd",		NOEND,	/* OPTEND */
     2.7+[Tag_del]	"del",		END,
     2.8 [Tag_dfn]	"dfn",		END,
     2.9 [Tag_dir]	"dir",		END,
    2.10 [Tag_div]	"div",		END,	/* OPTEND */
    2.11@@ -47,6 +48,7 @@ Tag tag[]={
    2.12 [Tag_iframe]	"iframe",	NOEND,
    2.13 [Tag_img]	"img",		NOEND,
    2.14 [Tag_input]	"input",	NOEND,
    2.15+[Tag_ins]	"ins",		END,
    2.16 [Tag_isindex]	"isindex",	NOEND,
    2.17 [Tag_kbd]	"kbd",		END,
    2.18 [Tag_key]	"key",		END,
    2.19@@ -81,5 +83,6 @@ Tag tag[]={
    2.20 [Tag_ul]	"ul",		END,
    2.21 [Tag_var]	"var",		END,
    2.22 [Tag_video]	"video",	NOEND,
    2.23+[Tag_wbr]	"wbr",		NOEND,
    2.24 [Tag_xmp]	"xmp",		END,
    2.25 };
     3.1--- a/sys/src/cmd/mothra/rdhtml.c
     3.2+++ b/sys/src/cmd/mothra/rdhtml.c
     3.3@@ -880,6 +880,7 @@ void plrdhtml(char *name, int fd, Www *d
     3.4 			break;
     3.5 		case Tag_s:
     3.6 		case Tag_strike:
     3.7+		case Tag_del:
     3.8 			g.state->strike=1;
     3.9 			break;
    3.10 		case Tag_blockquot:
    3.11@@ -899,6 +900,7 @@ void plrdhtml(char *name, int fd, Www *d
    3.12 			break;
    3.13 		case Tag_div:
    3.14 		case Tag_br:
    3.15+		case Tag_wbr:
    3.16 			g.spacc=0;
    3.17 			g.linebrk=1;
    3.18 			break;
    3.19@@ -944,6 +946,7 @@ void plrdhtml(char *name, int fd, Www *d
    3.20 			break;
    3.21 		case Tag_u:
    3.22 			htmlerror(g.name, g.lineno, "<u> deprecated");
    3.23+		case Tag_ins:
    3.24 		case Tag_em:
    3.25 		case Tag_i:
    3.26 		case Tag_var: