=================================================================== RCS file: /cvs/mandoc/cgi.c,v retrieving revision 1.179 retrieving revision 1.181 diff -u -p -r1.179 -r1.181 --- mandoc/cgi.c 2022/07/06 16:05:40 1.179 +++ mandoc/cgi.c 2023/04/28 19:11:03 1.181 @@ -1,4 +1,4 @@ -/* $Id: cgi.c,v 1.179 2022/07/06 16:05:40 schwarze Exp $ */ +/* $Id: cgi.c,v 1.181 2023/04/28 19:11:03 schwarze Exp $ */ /* * Copyright (c) 2014-2019, 2021, 2022 Ingo Schwarze * Copyright (c) 2011, 2012 Kristaps Dzonsons @@ -444,13 +444,14 @@ resp_searchform(const struct req *req, enum focus focu /* Write query input box. */ - printf(" Search query:\n" + " q.query != NULL) html_print(req->q.query); - printf( "\" size=\"40\""); + printf("\" size=\"40\""); if (focus == FOCUS_QUERY) printf(" autofocus"); - puts(">"); + puts(">\n "); /* Write submission buttons. */ @@ -491,7 +492,8 @@ resp_searchform(const struct req *req, enum focus focu /* Write manpath selector. */ if (req->psz > 1) { - puts(" "); for (i = 0; i < (int)req->psz; i++) { printf(" q.manpath, req->p[i]) == 0) @@ -1095,7 +1097,7 @@ main(void) #if HAVE_PLEDGE /* * The "rpath" pledge could be revoked after mparse_readfd() - * if the file desciptor to "/footer.html" would be opened + * if the file descriptor to "/footer.html" would be opened * up front, but it's probably not worth the complication * of the code it would cause: it would require scattering * pledge() calls in multiple low-level resp_*() functions.