From 8daf535665567d8c6c82a47d0e56bc6e1fdcd9e0 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 16 Jul 2012 10:45:41 +0000 Subject: [PATCH] For .El .sp, avoid the weird .sp -1v .PP .PP output sequence. Synching to OpenBSD rev. 1.38. --- mdoc_man.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/mdoc_man.c b/mdoc_man.c index 65932ece..7def0df8 100644 --- a/mdoc_man.c +++ b/mdoc_man.c @@ -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 * @@ -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); } -- 2.47.1