source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Remove stupid outer DIV tag in favour of regular BODY and HTML
@ 2010-12-15 15:59 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-12-15 15:59 UTC (permalink / raw)
  To: source

Log Message:
-----------
Remove stupid outer DIV tag in favour of regular BODY and HTML that can
be handled in CSS.

Clarified "lit" tag (will be the subject of future clarification).

Removed CSS2 note in mandoc.1, which is no longer the case.

Modified Files:
--------------
    mdocml:
        example.style.css
        html.c
        html.h
        mandoc.1
        mdoc_html.c

Revision Data
-------------
Index: html.h
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.h,v
retrieving revision 1.28
retrieving revision 1.29
diff -Lhtml.h -Lhtml.h -u -p -r1.28 -r1.29
--- html.h
+++ html.h
@@ -43,6 +43,7 @@ enum	htmltag {
 	TAG_DL,
 	TAG_DT,
 	TAG_DD,
+	TAG_BLOCKQUOTE,
 	TAG_MAX
 };
 
Index: mandoc.1
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mandoc.1,v
retrieving revision 1.78
retrieving revision 1.79
diff -Lmandoc.1 -Lmandoc.1 -u -p -r1.78 -r1.79
--- mandoc.1
+++ mandoc.1
@@ -541,15 +541,6 @@ The
 utility was written by
 .An Kristaps Dzonsons Aq kristaps@bsd.lv .
 .Sh CAVEATS
-The
-.Fl T Ns Cm html
-and
-.Fl T Ns Cm xhtml
-CSS2 styling used for
-.Fl m Ns Cm doc
-input lists does not render properly in older browsers, such as Internet
-Explorer 6 and earlier.
-.Pp
 In
 .Fl T Ns Cm html
 and
Index: html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/html.c,v
retrieving revision 1.114
retrieving revision 1.115
diff -Lhtml.c -Lhtml.c -u -p -r1.114 -r1.115
--- html.c
+++ html.c
@@ -67,6 +67,7 @@ static	const struct htmldata htmltags[TA
 	{"dl",		HTML_CLRLINE}, /* TAG_DL */
 	{"dt",		HTML_CLRLINE}, /* TAG_DT */
 	{"dd",		HTML_CLRLINE}, /* TAG_DD */
+	{"blockquote",	HTML_CLRLINE}, /* TAG_BLOCKQUOTE */
 };
 
 static	const char	*const htmlfonts[HTMLFONT_MAX] = {
Index: mdoc_html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v
retrieving revision 1.116
retrieving revision 1.117
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.116 -r1.117
--- mdoc_html.c
+++ mdoc_html.c
@@ -369,7 +369,6 @@ static void
 print_mdoc(MDOC_ARGS)
 {
 	struct tag	*t;
-	struct htmlpair	 tag;
 
 	t = print_otag(h, TAG_HEAD, 0, NULL);
 	print_mdoc_head(m, n, h);
@@ -377,10 +376,6 @@ print_mdoc(MDOC_ARGS)
 
 	t = print_otag(h, TAG_BODY, 0, NULL);
 
-	tag.key = ATTR_CLASS;
-	tag.val = "body";
-	print_otag(h, TAG_DIV, 1, &tag);
-
 	print_mdoc_nodelist(m, n, h);
 	print_tagq(h, t);
 }
@@ -1043,7 +1038,6 @@ mdoc_bl_pre(MDOC_ARGS)
 		bufcat_su(h, "margin-left", &su);
 		PAIR_STYLE_INIT(&tag[1], h);
 		i = 2;
-
 	}
 
 	switch (n->data.Bl->type) {
Index: example.style.css
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/example.style.css,v
retrieving revision 1.22
retrieving revision 1.23
diff -Lexample.style.css -Lexample.style.css -u -p -r1.22 -r1.23
--- example.style.css
+++ example.style.css
@@ -1,7 +1,8 @@
 /* $Id$ */
 
-div.body	{ font-family: monospace; 
-		  min-width: 580px; width: 580px; } /* Top-most div tag. */
+html		{ min-width: 580px; width: 580px; }
+
+body		{ font-family: monospace; }
 
 div.sec-head	{ font-weight: bold; font-style: normal; } /* Sections (Sh). */
 div.sec-body	{ }
@@ -31,7 +32,7 @@ span.ftype	{ font-style: italic; font-we
 span.includes	{ font-weight: bold; font-style: normal; } /* Header includes (In). */
 span.italic	{ font-style: italic; font-weight: normal; } /* Generically italic (BI, IB, I). */
 span.lib	{ } /* Library (Lb). */
-span.lit	{ } /* Literals (Bf -literal). */
+span.lit	{ } /* Literals (Dl). */
 span.macro	{ font-weight: bold; font-style: normal; } /* Macro-ish thing (Fd). */
 span.name	{ font-weight: bold; font-style: normal; } /* Name of utility (Nm). */
 span.opt	{ } /* Options (Op, Oo/Oc). */
@@ -65,7 +66,7 @@ a.link-ref	{ } /* Reference section link
 a.link-sec	{ } /* Section links (Sx). */
 
 div.emph	{ font-style: italic; font-weight: normal; } /* Emphasis (Bl -emphasis). */
-div.lit		{ } /* Literal (D1, Bd -literal, Dl, Bd -literal). */
+div.lit		{ } /* Literal (Bf -literal, Bd -literal, Bd -unfilled). */
 div.symb	{ font-weight: bold; font-style: normal; } /* Symbols (Bl -symbolic). */
 
 table.footer	{ } /* Document footer. */
--
 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:[~2010-12-15 15:59 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-12-15 15:59 mdocml: Remove stupid outer DIV tag in favour of regular BODY and HTML 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).