* mdocml: Further tweaks for output consistency.
@ 2011-12-15 12:18 kristaps
0 siblings, 0 replies; only message in thread
From: kristaps @ 2011-12-15 12:18 UTC (permalink / raw)
To: source
Log Message:
-----------
Further tweaks for output consistency.
Modified Files:
--------------
mdocml:
cgi.c
example.style.css
man-cgi.css
Revision Data
-------------
Index: man-cgi.css
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/man-cgi.css,v
retrieving revision 1.1
retrieving revision 1.2
diff -Lman-cgi.css -Lman-cgi.css -u -p -r1.1 -r1.2
--- man-cgi.css
+++ 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; }
+
Index: cgi.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/cgi.c,v
retrieving revision 1.32
retrieving revision 1.33
diff -Lcgi.c -Lcgi.c -u -p -r1.32 -r1.33
--- cgi.c
+++ cgi.c
@@ -497,6 +497,8 @@ resp_search(struct res *r, size_t sz, vo
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, vo
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, vo
"</TR>");
}
- puts("</TABLE>");
+ puts("</TABLE>\n"
+ "</DIV>");
resp_end_html();
}
Index: example.style.css
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/example.style.css,v
retrieving revision 1.48
retrieving revision 1.49
diff -Lexample.style.css -Lexample.style.css -u -p -r1.48 -r1.49
--- example.style.css
+++ example.style.css
@@ -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). */
--
To unsubscribe send an email to source+unsubscribe@mdocml.bsd.lv
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2011-12-15 12:18 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-15 12:18 mdocml: Further tweaks for output consistency kristaps
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).