diff options
author | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-10-19 13:29:57 +0000 |
---|---|---|
committer | Ingo Schwarze <schwarze@cvs.openbsd.org> | 2009-10-19 13:29:57 +0000 |
commit | b5c53523aecd80ed1bf1930079d1b8c4ca1b23ec (patch) | |
tree | d0e1c3b595be6e345c41c49ff71599d4e1aefff7 | |
parent | a2e53144ad3fac8273bef6d8fdc09845029391e9 (diff) |
sync to 1.9.6: two newline fixes:
* newline before .Rs only below SEE ALSO
* newline after .Lb only below LIBRARY
-rw-r--r-- | usr.bin/mandoc/mdoc_term.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/usr.bin/mandoc/mdoc_term.c b/usr.bin/mandoc/mdoc_term.c index f83af438c36..c81e7fab920 100644 --- a/usr.bin/mandoc/mdoc_term.c +++ b/usr.bin/mandoc/mdoc_term.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_term.c,v 1.56 2009/10/19 09:41:22 schwarze Exp $ */ +/* $Id: mdoc_term.c,v 1.57 2009/10/19 13:29:56 schwarze Exp $ */ /* * Copyright (c) 2008, 2009 Kristaps Dzonsons <kristaps@kth.se> * @@ -1159,6 +1159,8 @@ static int termp_rs_pre(DECL_ARGS) { + if (SEC_SEE_ALSO != node->sec) + return(1); if (MDOC_BLOCK == node->type && node->prev) term_vspace(p); return(1); @@ -1419,7 +1421,8 @@ static void termp_lb_post(DECL_ARGS) { - term_newln(p); + if (SEC_LIBRARY == node->sec) + term_newln(p); } |