summaryrefslogtreecommitdiffstats
path: root/cgi.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-01-21 01:20:31 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-01-21 01:20:31 +0000
commit8f62c6e5d6916aac15b7d2af21533af26e2abc34 (patch)
tree1194ba2613ad676b40d490146e8b74331c426ab3 /cgi.c
parent33d7fd85e17c01d40d41eea4f0fc62ff1f1c74f0 (diff)
downloadmandoc-8f62c6e5d6916aac15b7d2af21533af26e2abc34.tar.gz
clean up the remaining class attributes
Diffstat (limited to 'cgi.c')
-rw-r--r--cgi.c21
1 files changed, 8 insertions, 13 deletions
diff --git a/cgi.c b/cgi.c
index 715e7597..c7422139 100644
--- a/cgi.c
+++ b/cgi.c
@@ -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>");
}
/*