source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Add `Rs' vertical-space in -T[x]html "SEE ALSO" section.
@ 2010-09-25 15:51 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-09-25 15:51 UTC (permalink / raw)
  To: source

Log Message:
-----------
Add `Rs' vertical-space in -T[x]html "SEE ALSO" section.  Remove
corresponding TODO entry.

Also have the "." after an `Rs' block trigger inter-sentence spacing.

Modified Files:
--------------
    mdocml:
        TODO
        mdoc_html.c
        mdoc_term.c

Revision Data
-------------
Index: TODO
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/TODO,v
retrieving revision 1.49
retrieving revision 1.50
diff -LTODO -LTODO -u -p -r1.49 -r1.50
--- TODO
+++ TODO
@@ -157,8 +157,6 @@
   see "The route utility provides the following simple commands:"
   in OpenBSD route(8).
 
-- In -T[x]html, Rs/Re need a div.
-
 ************************************************************************
 * performance issues
 ************************************************************************
Index: mdoc_html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v
retrieving revision 1.104
retrieving revision 1.105
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.104 -r1.105
--- mdoc_html.c
+++ mdoc_html.c
@@ -2108,17 +2108,14 @@ static int
 mdoc_rs_pre(MDOC_ARGS)
 {
 	struct htmlpair	 tag;
-	struct roffsu	 su;
 
 	if (MDOC_BLOCK != n->type)
 		return(1);
 
 	if (n->prev && SEC_SEE_ALSO == n->sec) {
-		SCALE_VS_INIT(&su, 1);
-		bufcat_su(h, "margin-top", &su);
-		PAIR_STYLE_INIT(&tag, h);
-		print_otag(h, TAG_DIV, 1, &tag);
-	}
+		print_otag(h, TAG_BR, 0, NULL);
+		print_otag(h, TAG_BR, 0, NULL);
+	} 
 
 	PAIR_CLASS_INIT(&tag, "ref");
 	print_otag(h, TAG_SPAN, 1, &tag);
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.185
retrieving revision 1.186
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.185 -r1.186
--- mdoc_term.c
+++ mdoc_term.c
@@ -2131,7 +2131,11 @@ termp____post(DECL_ARGS)
 	/* TODO: %U. */
 
 	p->flags |= TERMP_NOSPACE;
-	term_word(p, n->next ? "," : ".");
+	if (NULL == n->next) {
+		term_word(p, ".");
+		p->flags |= TERMP_SENTENCE;
+	} else
+		term_word(p, ",");
 }
 
 
--
 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-09-25 15:51 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-09-25 15:51 mdocml: Add `Rs' vertical-space in -T[x]html "SEE ALSO" section 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).