From df46652d2c3cb097c333f5e046d46261f2b41953 Mon Sep 17 00:00:00 2001 From: schwarze Date: Wed, 6 Jul 2022 17:19:57 +0000 Subject: [PATCH] For accessibility, label the last two widgets in the search form. Patch from Anna Vyalkova , significantly tweaked by me. --- usr.bin/mandoc/cgi.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/usr.bin/mandoc/cgi.c b/usr.bin/mandoc/cgi.c index 48d0fc089ac..0ff5b980346 100644 --- a/usr.bin/mandoc/cgi.c +++ b/usr.bin/mandoc/cgi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: cgi.c,v 1.118 2022/07/06 16:02:52 schwarze Exp $ */ +/* $OpenBSD: cgi.c,v 1.119 2022/07/06 17:19:57 schwarze Exp $ */ /* * Copyright (c) 2014-2019, 2021, 2022 Ingo Schwarze * Copyright (c) 2011, 2012 Kristaps Dzonsons @@ -440,13 +440,14 @@ resp_searchform(const struct req *req, enum focus focus) /* 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. */ @@ -487,7 +488,8 @@ resp_searchform(const struct req *req, enum focus focus) /* Write manpath selector. */ if (req->psz > 1) { - puts(" "); for (i = 0; i < (int)req->psz; i++) { printf(" q.manpath, req->p[i]) == 0) -- 2.20.1