source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: Fix following the first: `Ft' is given special treatment if
@ 2010-06-04 22:26 kristaps
  0 siblings, 0 replies; only message in thread
From: kristaps @ 2010-06-04 22:26 UTC (permalink / raw)
  To: source

Log Message:
-----------
Fix following the first: `Ft' is given special treatment if specified before
`Fn'.

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

Revision Data
-------------
Index: mdoc_html.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_html.c,v
retrieving revision 1.75
retrieving revision 1.76
diff -Lmdoc_html.c -Lmdoc_html.c -u -p -r1.75 -r1.76
--- mdoc_html.c
+++ mdoc_html.c
@@ -1590,6 +1590,10 @@ mdoc_fn_pre(MDOC_ARGS)
 		bufcat_su(h, "margin-left", &su);
 		su.scale = -su.scale;
 		bufcat_su(h, "text-indent", &su);
+		if (n->prev && MDOC_Ft != n->prev->tok) {
+			SCALE_VS_INIT(&su, 1);
+			bufcat_su(h, "margin-top", &su);
+		} 
 		if (n->next) {
 			SCALE_VS_INIT(&su, 1);
 			bufcat_su(h, "margin-bottom", &su);
Index: mdoc_term.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_term.c,v
retrieving revision 1.139
retrieving revision 1.140
diff -Lmdoc_term.c -Lmdoc_term.c -u -p -r1.139 -r1.140
--- mdoc_term.c
+++ mdoc_term.c
@@ -1538,7 +1538,9 @@ termp_fn_pre(DECL_ARGS)
 
 	/* NB: MDOC_LINE has no effect on this macro! */
 	if (SEC_SYNOPSIS == n->sec) {
-		if (n->prev)
+		if (n->prev && MDOC_Ft == n->prev->tok)
+			term_newln(p);
+		else if (n->prev)
 			term_vspace(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-06-04 22:26 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-06-04 22:26 mdocml: Fix following the first: `Ft' is given special treatment if 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).