summaryrefslogtreecommitdiffstats
path: root/mdoc_man.c
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2012-07-16 10:45:41 +0000
committerIngo Schwarze <schwarze@openbsd.org>2012-07-16 10:45:41 +0000
commit7260a61d39e92ac325832b9dfbb203ebc0eb2a88 (patch)
treeb8bed423cae11e4b7c4582af51ee6e21d74d0972 /mdoc_man.c
parent9cc2ea62b7433f3021b78293349ccddded36ce3c (diff)
downloadmandoc-7260a61d39e92ac325832b9dfbb203ebc0eb2a88.tar.gz
For .El .sp, avoid the weird .sp -1v .PP .PP output sequence.
Synching to OpenBSD rev. 1.38.
Diffstat (limited to 'mdoc_man.c')
-rw-r--r--mdoc_man.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/mdoc_man.c b/mdoc_man.c
index 8d7cd000..f6afd614 100644
--- a/mdoc_man.c
+++ b/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);
}