diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-16 10:45:29 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2012-07-16 10:45:29 +0000 |
commit | 6364d8c637003d4e2ec72a1d6cfadbfc39cf90ce (patch) | |
tree | 2d85c725f21f8d0a6d7f3fdb2578e3b87e4618d2 /usr.bin/mandoc | |
parent | ac56567a5861098d3cacce5483e87d459b1f1ecf (diff) |
Two fixes regarding -Tman .sp:
* Keep height argument on the same line (it got printed to the output).
* For .El .sp, avoid the weird .sp -1v .PP .sp output sequence.
Diffstat (limited to 'usr.bin/mandoc')
-rw-r--r-- | usr.bin/mandoc/mdoc_man.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_man.c b/usr.bin/mandoc/mdoc_man.c index 6d180fd9381..41f12fcec5d 100644 --- a/usr.bin/mandoc/mdoc_man.c +++ b/usr.bin/mandoc/mdoc_man.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_man.c,v 1.37 2012/07/14 09:05:58 schwarze Exp $ */ +/* $Id: mdoc_man.c,v 1.38 2012/07/16 10:45:28 schwarze Exp $ */ /* * Copyright (c) 2011, 2012 Ingo Schwarze <schwarze@openbsd.org> * @@ -1338,7 +1338,11 @@ static int pre_sp(DECL_ARGS) { - print_line(".sp", MMAN_nl); + if (MMAN_PP & outflags) { + outflags &= ~MMAN_PP; + print_line(".PP", 0); + } else + print_line(".sp", 0); return(1); } |