source@mandoc.bsd.lv
 help / color / mirror / Atom feed
* mdocml: For .El .sp, avoid the weird .sp -1v .PP .PP output sequence.
@ 2012-07-16 10:45 schwarze
  0 siblings, 0 replies; only message in thread
From: schwarze @ 2012-07-16 10:45 UTC (permalink / raw)
  To: source

Log Message:
-----------
For .El .sp, avoid the weird .sp -1v .PP .PP output sequence.
Synching to OpenBSD rev. 1.38.

Modified Files:
--------------
    mdocml:
        mdoc_man.c

Revision Data
-------------
Index: mdoc_man.c
===================================================================
RCS file: /usr/vhosts/mdocml.bsd.lv/cvs/mdocml/mdoc_man.c,v
retrieving revision 1.40
retrieving revision 1.41
diff -Lmdoc_man.c -Lmdoc_man.c -u -p -r1.40 -r1.41
--- mdoc_man.c
+++ mdoc_man.c
@@ -1342,9 +1342,10 @@ static int
 pre_sp(DECL_ARGS)
 {
 
-	if (MMAN_PP & outflags && MDOC_It != n->parent->tok)
+	if (MMAN_PP & outflags) {
+		outflags &= ~MMAN_PP;
 		print_line(".PP", 0);
-	else
+	} else
 		print_line(".sp", 0);
 	return(1);
 }
--
 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:[~2012-07-16 10:45 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-07-16 10:45 mdocml: For .El .sp, avoid the weird .sp -1v .PP .PP output sequence schwarze

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).