diff options
author | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-21 01:20:31 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@openbsd.org> | 2017-01-21 01:20:31 +0000 |
commit | 8f62c6e5d6916aac15b7d2af21533af26e2abc34 (patch) | |
tree | 1194ba2613ad676b40d490146e8b74331c426ab3 /cgi.c | |
parent | 33d7fd85e17c01d40d41eea4f0fc62ff1f1c74f0 (diff) | |
download | mandoc-8f62c6e5d6916aac15b7d2af21533af26e2abc34.tar.gz |
clean up the remaining class attributes
Diffstat (limited to 'cgi.c')
-rw-r--r-- | cgi.c | 21 |
1 files changed, 8 insertions, 13 deletions
@@ -494,9 +494,9 @@ pg_index(const struct req *req) resp_searchform(req, FOCUS_QUERY); printf("<p>\n" "This web interface is documented in the\n" - "<a href=\"/%s%sman.cgi.8\">man.cgi(8)</a>\n" + "<a class=\"Xr\" href=\"/%s%sman.cgi.8\">man.cgi(8)</a>\n" "manual, and the\n" - "<a href=\"/%s%sapropos.1\">apropos(1)</a>\n" + "<a class=\"Xr\" href=\"/%s%sapropos.1\">apropos(1)</a>\n" "manual explains the query syntax.\n" "</p>\n", scriptname, *scriptname == '\0' ? "" : "/", @@ -576,26 +576,21 @@ pg_searchres(const struct req *req, struct manpage *r, size_t sz) req->q.equal || sz == 1 ? FOCUS_NONE : FOCUS_QUERY); if (sz > 1) { - puts("<div class=\"results\">"); - puts("<table>"); - + puts("<table class=\"results\">"); for (i = 0; i < sz; i++) { printf(" <tr>\n" - " <td class=\"title\">" - "<a href=\"/%s%s%s/%s", + " <td>" + "<a class=\"Xr\" href=\"/%s%s%s/%s\">", scriptname, *scriptname == '\0' ? "" : "/", req->q.manpath, r[i].file); - printf("\">"); html_print(r[i].names); printf("</a></td>\n" - " <td class=\"desc\">"); + " <td><span class=\"Nd\">"); html_print(r[i].output); - puts("</td>\n" + puts("</span></td>\n" " </tr>"); } - - puts("</table>\n" - "</div>"); + puts("</table>"); } /* |