diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-01-19 13:35:00 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2017-01-19 13:35:00 +0000 |
commit | bf424eede316da34b41e9ee8ad9490cb7fbcbe31 (patch) | |
tree | 0ddcd6ae34086d1df44df7aa8be3cfef904cba54 /usr.bin/mandoc/cgi.c | |
parent | a416a056fff15d472930cf429a7fa0b99d9f1721 (diff) |
Start cleanup: trim useless HTML comments and <div> elements
on the <html> and <body> levels.
Diffstat (limited to 'usr.bin/mandoc/cgi.c')
-rw-r--r-- | usr.bin/mandoc/cgi.c | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c index e168f42e577..90e13441214 100644 --- a/usr.bin/mandoc/cgi.c +++ b/usr.bin/mandoc/cgi.c @@ -1,7 +1,7 @@ -/* $OpenBSD: cgi.c,v 1.80 2016/09/11 23:59:02 bentley Exp $ */ +/* $OpenBSD: cgi.c,v 1.81 2017/01/19 13:34:59 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> - * Copyright (c) 2014, 2015, 2016 Ingo Schwarze <schwarze@usta.de> + * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze <schwarze@usta.de> * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -354,8 +354,7 @@ resp_begin_html(int code, const char *msg) " type=\"text/css\" media=\"all\">\n" "<title>%s</title>\n" "</head>\n" - "<body>\n" - "<!-- Begin page content. //-->\n", + "<body>\n", CSS_DIR, CUSTOMIZE_TITLE); resp_copy(MAN_DIR "/header.html"); @@ -376,9 +375,7 @@ resp_searchform(const struct req *req, enum focus focus) { int i; - puts("<!-- Begin search form. //-->"); - printf("<div id=\"mancgi\">\n" - "<form action=\"/%s\" method=\"get\">\n" + printf("<form action=\"/%s\" method=\"get\">\n" "<fieldset>\n" "<legend>Manual Page Search Parameters</legend>\n", scriptname); @@ -446,9 +443,7 @@ resp_searchform(const struct req *req, enum focus focus) } puts("</fieldset>\n" - "</form>\n" - "</div>"); - puts("<!-- End search form. //-->"); + "</form>"); } static int |