mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-29 15:52:07 +00:00
view.cgi: not bold, indented, newlines in source of output itself
This commit is contained in:
parent
694f8cbad4
commit
6d632cf53e
@ -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
|
||||
{
|
||||
|
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user