=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/mandoc/cgi.c,v retrieving revision 1.61 retrieving revision 1.62 diff -c -r1.61 -r1.62 *** src/usr.bin/mandoc/cgi.c 2016/04/14 23:48:06 1.61 --- src/usr.bin/mandoc/cgi.c 2016/04/15 00:12:50 1.62 *************** *** 1,4 **** ! /* $OpenBSD: cgi.c,v 1.61 2016/04/14 23:48:06 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016 Ingo Schwarze --- 1,4 ---- ! /* $OpenBSD: cgi.c,v 1.62 2016/04/15 00:12:50 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Kristaps Dzonsons * Copyright (c) 2014, 2015, 2016 Ingo Schwarze *************** *** 586,619 **** resp_begin_html(200, NULL); resp_searchform(req); - puts("
"); - puts(""); ! for (i = 0; i < sz; i++) { ! printf("\n" ! "\n" ! "\n" ! ""); ! } ! puts("
\n" ! "q.manpath, r[i].file); ! printf("\">"); ! html_print(r[i].names); ! printf("\n" ! ""); ! html_print(r[i].output); ! puts("
\n" ! "
"); /* * In man(1) mode, show one of the pages * even if more than one is found. */ ! if (req->q.equal) { puts("
"); iuse = 0; priouse = 20; --- 586,622 ---- resp_begin_html(200, NULL); resp_searchform(req); ! if (sz > 1) { ! puts("
"); ! puts(""); ! for (i = 0; i < sz; i++) { ! printf("\n" ! "\n" ! "\n" ! ""); ! } + puts("
\n" ! "q.manpath, r[i].file); ! printf("\">"); ! html_print(r[i].names); ! printf("\n" ! ""); ! html_print(r[i].output); ! puts("
\n" + "
"); + } + /* * In man(1) mode, show one of the pages * even if more than one is found. */ ! if (req->q.equal || sz == 1) { puts("
"); iuse = 0; priouse = 20;