From eff23cb32e2b9842d5e104216ae8ae28227bf7d3 Mon Sep 17 00:00:00 2001 From: stanley lieber Date: Mon, 3 Oct 2011 20:27:59 -0500 Subject: mothra: interpret files beggining with as html; include tag in newly created hit.html files --- sys/src/cmd/mothra/mothra.c | 2 +- sys/src/cmd/mothra/snoop.c | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/sys/src/cmd/mothra/mothra.c b/sys/src/cmd/mothra/mothra.c index d71ba4f66..971273bfe 100644 --- a/sys/src/cmd/mothra/mothra.c +++ b/sys/src/cmd/mothra/mothra.c @@ -1103,7 +1103,7 @@ void hit3(int button, int item){ message("can't open %s", name); return; } - fprint(fd, "Hit List\n"); + fprint(fd, "Hit List\n"); fprint(fd, "

Hit list

\n"); } seek(fd, 0, 2); diff --git a/sys/src/cmd/mothra/snoop.c b/sys/src/cmd/mothra/snoop.c index 3ab8075f7..da72234d9 100644 --- a/sys/src/cmd/mothra/snoop.c +++ b/sys/src/cmd/mothra/snoop.c @@ -18,7 +18,8 @@ snooptype(int fd) buf[n] = 0; if(cistrstr(buf, "