From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32376 invoked from network); 6 Jul 2022 17:21:37 -0000 Received: from bsd.lv (HELO mandoc.bsd.lv) (66.111.2.12) by inbox.vuxu.org with ESMTPUTF8; 6 Jul 2022 17:21:37 -0000 Received: from fantadrom.bsd.lv (localhost [127.0.0.1]) by mandoc.bsd.lv (OpenSMTPD) with ESMTP id 1ffc362f for ; Wed, 6 Jul 2022 12:21:34 -0500 (EST) Received: from localhost (mandoc.bsd.lv [local]) by mandoc.bsd.lv (OpenSMTPD) with ESMTPA id ab348bff for ; Wed, 6 Jul 2022 12:21:34 -0500 (EST) Date: Wed, 6 Jul 2022 12:21:34 -0500 (EST) X-Mailinglist: mandoc-source Reply-To: source@mandoc.bsd.lv MIME-Version: 1.0 From: schwarze@mandoc.bsd.lv To: source@mandoc.bsd.lv Subject: mandoc: For accessibility, label the last two widgets in the search X-Mailer: activitymail 1.26, http://search.cpan.org/dist/activitymail/ Content-Type: text/plain; charset=utf-8 Message-ID: <3366753b3a50e3fc@mandoc.bsd.lv> Log Message: ----------- For accessibility, label the last two widgets in the search form. Patch from Anna Vyalkova , significantly tweaked by me. Modified Files: -------------- mandoc: cgi.c Revision Data ------------- Index: cgi.c =================================================================== RCS file: /home/cvs/mandoc/mandoc/cgi.c,v retrieving revision 1.179 retrieving revision 1.180 diff -Lcgi.c -Lcgi.c -u -p -r1.179 -r1.180 --- cgi.c +++ cgi.c @@ -444,13 +444,14 @@ resp_searchform(const struct req *req, e /* 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, e /* Write manpath selector. */ if (req->psz > 1) { - puts(" "); for (i = 0; i < (int)req->psz; i++) { printf(" q.manpath, req->p[i]) == 0) -- To unsubscribe send an email to source+unsubscribe@mandoc.bsd.lv