view.cgi: not bold, indented, newlines in source of output itself

This commit is contained in:
erik%vanderpoel.org 2005-01-21 20:11:50 +00:00
parent 694f8cbad4
commit 6d632cf53e
2 changed files with 3 additions and 5 deletions

View File

@ -340,8 +340,7 @@ main(int argc, char *argv[])
fprintf
(
view->out,
"<html><head><title>View %s</title></head>"
"<body><tt><b>\n",
"<html><head><title>View %s</title></head><body><pre>",
url
);
viewReport(app, "input url:");
@ -398,7 +397,6 @@ main(int argc, char *argv[])
viewReport(app, "fully qualified url:");
viewReport(app, (char *) u->url);
viewReportHTML(app, "<hr>");
fflush(view->out);
if (!strcmp((char *) u->scheme, "http"))
{
httpProcess(app, u,
@ -415,7 +413,7 @@ main(int argc, char *argv[])
u->scheme
);
}
fprintf(view->out, "</b></tt></body></html>\n");
fprintf(view->out, "</pre></body></html>\n");
}
else
{

View File

@ -27,7 +27,7 @@
#define CONTROL_START "<font color=#FF0000>"
#define CONTROL(str) CONTROL_START str CONTROL_END
#define CONTROL_END "</font>"
#define NL "<br>"
#define NL "\n"
static int verbose = 0;