shithub: riscv

Download patch

ref: d79754b4c8f2d23a4f27d9a889efd896bcbc8a2f
parent: b143c1f41190c9f8a6750f45b450533648afe460
author: cinap_lenrek <[email protected]>
date: Tue Sep 8 15:23:23 EDT 2015

mothra: make text inside <td> bold

--- a/sys/src/cmd/mothra/html.h
+++ b/sys/src/cmd/mothra/html.h
@@ -201,6 +201,7 @@
 	Tag_source,
 	Tag_table,	/* rm 3.8.00 */
 	Tag_td,
+	Tag_th,
 	Tag_textarea,
 	Tag_title,
 	Tag_tr,
--- a/sys/src/cmd/mothra/html.syntax.c
+++ b/sys/src/cmd/mothra/html.syntax.c
@@ -78,6 +78,7 @@
 [Tag_source]	"source",	NOEND,
 [Tag_table]	"table",	END,
 [Tag_td]	"td",		END,
+[Tag_th]	"th",		END,
 [Tag_textarea]	"textarea",	END,
 [Tag_title]	"title",	END,
 [Tag_tr]	"tr",		END,
--- a/sys/src/cmd/mothra/rdhtml.c
+++ b/sys/src/cmd/mothra/rdhtml.c
@@ -838,6 +838,8 @@
 			g.spacc=0;
 			g.linebrk=1;
 			break;
+		case Tag_th:
+			g.state->font=BOLD;
 		case Tag_td:
 			g.spacc++;
 			break;