aboutsummaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorKristaps Dzonsons <kristaps@bsd.lv>2011-12-15 12:18:57 +0000
committerKristaps Dzonsons <kristaps@bsd.lv>2011-12-15 12:18:57 +0000
commit2ff677f8601e7d4cb06367b3661d6ee2cdb27916 (patch)
treedbf4a375cbb3c337b452d4b6439ef320cede9d6e
parenta0c73e06c1c7ad5baf9bec429a737ad92919dba0 (diff)
downloadmandoc-2ff677f8601e7d4cb06367b3661d6ee2cdb27916.tar.gz
mandoc-2ff677f8601e7d4cb06367b3661d6ee2cdb27916.tar.zst
mandoc-2ff677f8601e7d4cb06367b3661d6ee2cdb27916.zip
Further tweaks for output consistency.
-rw-r--r--cgi.c11
-rw-r--r--example.style.css6
-rw-r--r--man-cgi.css5
3 files changed, 15 insertions, 7 deletions
diff --git a/cgi.c b/cgi.c
index 6ab340bb..2ed654d8 100644
--- a/cgi.c
+++ b/cgi.c
@@ -1,4 +1,4 @@
-/* $Id: cgi.c,v 1.32 2011/12/15 12:05:19 kristaps Exp $ */
+/* $Id: cgi.c,v 1.33 2011/12/15 12:18:57 kristaps Exp $ */
/*
* Copyright (c) 2011 Kristaps Dzonsons <kristaps@bsd.lv>
*
@@ -497,6 +497,8 @@ resp_search(struct res *r, size_t sz, void *arg)
resp_begin_html(200, NULL);
resp_searchform(req);
+ puts("<DIV CLASS=\"results\">");
+
if (0 == sz) {
printf("<P>\n"
"No %s results found.\n",
@@ -512,12 +514,12 @@ resp_search(struct res *r, size_t sz, void *arg)
puts("\">apropos</A>?)");
}
puts("</P>");
+ puts("</DIV>");
resp_end_html();
return;
}
- puts("<P></P>\n"
- "<TABLE>");
+ puts("<TABLE>");
for (i = 0; i < (int)sz; i++) {
printf("<TR>\n"
@@ -540,7 +542,8 @@ resp_search(struct res *r, size_t sz, void *arg)
"</TR>");
}
- puts("</TABLE>");
+ puts("</TABLE>\n"
+ "</DIV>");
resp_end_html();
}
diff --git a/example.style.css b/example.style.css
index d4886d07..660f4d13 100644
--- a/example.style.css
+++ b/example.style.css
@@ -1,4 +1,4 @@
-/* $Id: example.style.css,v 1.48 2011/12/15 12:05:19 kristaps Exp $ */
+/* $Id: example.style.css,v 1.49 2011/12/15 12:18:57 kristaps Exp $ */
/*
* This is an example style-sheet provided for mandoc(1) and the -Thtml
* or -Txhtml output mode.
@@ -6,8 +6,8 @@
* See mdoc(7) and man(7) for macro explanations.
*/
-div.mandoc { min-width: 100ex;
- width: 100ex;
+div.mandoc { min-width: 102ex;
+ width: 102ex;
font-family: monospace; } /* This is the outer node of all mandoc -T[x]html documents. */
div.mandoc h1 { margin-bottom: 0ex; font-size: inherit; margin-left: -4ex; } /* Section header (Sh, SH). */
div.mandoc h2 { margin-bottom: 0ex; font-size: inherit; margin-left: -2ex; } /* Sub-section header (Ss, SS). */
diff --git a/man-cgi.css b/man-cgi.css
index 5f9f8f6d..6dee4d60 100644
--- a/man-cgi.css
+++ b/man-cgi.css
@@ -1,6 +1,11 @@
body { font-family: Helvetica,Arial, sans-serif;
font-size: small; }
+body > div { padding-left: 2em;
+ padding-top: 1em; }
+body > div#mancgi { padding-left: 0em;
+ padding-top: 0em; }
#mancgi fieldset { text-align: center; }
#mancgi input[name=expr] { width: 25%; }
#mancgi td.title { padding-right: 1em;
text-align: right; }
+