=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.141 retrieving revision 1.143 diff -u -p -r1.141 -r1.143 --- mandoc/cgi.c 2016/09/12 00:06:20 1.141 +++ mandoc/cgi.c 2017/01/19 13:55:56 1.143 @@ -1,7 +1,7 @@ -/* $Id: cgi.c,v 1.141 2016/09/12 00:06:20 schwarze Exp $ */ +/* $Id: cgi.c,v 1.143 2017/01/19 13:55:56 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons - * Copyright (c) 2014, 2015, 2016 Ingo Schwarze + * Copyright (c) 2014, 2015, 2016, 2017 Ingo Schwarze * * Permission to use, copy, modify, and distribute this software for any * purpose with or without fee is hereby granted, provided that the above @@ -351,13 +351,12 @@ resp_begin_html(int code, const char *msg) printf("\n" "\n" "\n" - "\n" - "\n" + " \n" - "%s\n" + " %s\n" "\n" - "\n" - "\n", + "\n", CSS_DIR, CUSTOMIZE_TITLE); resp_copy(MAN_DIR "/header.html"); @@ -378,16 +377,14 @@ resp_searchform(const struct req *req, enum focus focu { int i; - puts(""); - printf("
\n" - "
\n" - "
\n" - "Manual Page Search Parameters\n", + printf("\n" + "
\n" + " Manual Page Search Parameters\n", scriptname); /* Write query input box. */ - printf("q.query != NULL) html_print(req->q.query); printf( "\" size=\"40\""); @@ -397,45 +394,46 @@ resp_searchform(const struct req *req, enum focus focu /* Write submission buttons. */ - printf( "\n" - "\n
\n"); + " \n" + "
\n"); /* Write section selector. */ - puts(""); for (i = 0; i < sec_MAX; i++) { - printf("\n", sec_names[i]); } - puts(""); + puts(" "); /* Write architecture selector. */ - printf( ""); + puts(" "); /* Write manpath selector. */ if (req->psz > 1) { - puts(""); for (i = 0; i < (int)req->psz; i++) { - printf(""); } - puts(""); + puts(" "); } - puts("
\n" - "\n" - "
"); - puts(""); + puts(" \n" + ""); } static int @@ -584,19 +580,18 @@ pg_searchres(const struct req *req, struct manpage *r, puts(""); for (i = 0; i < sz; i++) { - printf("\n" - "\n" + " \n" - "\n" + " \n" - ""); + " "); } puts("
\n" + printf("
" "q.manpath, r[i].file); printf("\">"); html_print(r[i].names); - printf("\n" - ""); + printf(""); html_print(r[i].output); puts("
\n"