]> git.cameronkatri.com Git - mandoc.git/commitdiff
For .El .sp, avoid the weird .sp -1v .PP .PP output sequence.
authorIngo Schwarze <schwarze@openbsd.org>
Mon, 16 Jul 2012 10:45:41 +0000 (10:45 +0000)
committerIngo Schwarze <schwarze@openbsd.org>
Mon, 16 Jul 2012 10:45:41 +0000 (10:45 +0000)
Synching to OpenBSD rev. 1.38.

mdoc_man.c

index 65932ece068ee12a971cdd0937e0fc5e5c23ff42..7def0df88ca008d8160ebeecda670293985fb381 100644 (file)
@@ -1,4 +1,4 @@
-/*     $Id: mdoc_man.c,v 1.40 2012/07/16 09:51:54 schwarze Exp $ */
+/*     $Id: mdoc_man.c,v 1.41 2012/07/16 10:45:41 schwarze Exp $ */
 /*
  * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org>
  *
@@ -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);
 }