From 50e1b4e65a3b84c5b08776a80649262a16238e3b Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Thu, 19 Jan 2017 13:55:56 +0000 Subject: Adjust indentation of the HTML output to the conventions established by html.c. No semantic change. --- cgi.c | 54 +++++++++++++++++++++++++++--------------------------- 1 file changed, 27 insertions(+), 27 deletions(-) (limited to 'cgi.c') diff --git a/cgi.c b/cgi.c index 5a21856a..0ab736b8 100644 --- a/cgi.c +++ b/cgi.c @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.142 2017/01/19 13:35:02 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, 2017 Ingo Schwarze @@ -351,10 +351,10 @@ resp_begin_html(int code, const char *msg) printf("\n" "\n" "\n" - "\n" - "\n" + " \n" - "%s\n" + " %s\n" "\n" "\n", CSS_DIR, CUSTOMIZE_TITLE); @@ -378,13 +378,13 @@ resp_searchform(const struct req *req, enum focus focus) int i; printf("
\n" - "
\n" - "Manual Page Search Parameters\n", + "
\n" + " Manual Page Search Parameters\n", scriptname); /* Write query input box. */ - printf("q.query != NULL) html_print(req->q.query); printf( "\" size=\"40\""); @@ -394,45 +394,46 @@ resp_searchform(const struct req *req, enum focus focus) /* 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" + puts("
\n" "
"); } @@ -579,19 +580,18 @@ pg_searchres(const struct req *req, struct manpage *r, size_t sz) 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" -- cgit v1.2.3