From b5c53523aecd80ed1bf1930079d1b8c4ca1b23ec Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 19 Oct 2009 13:29:57 +0000 Subject: sync to 1.9.6: two newline fixes: * newline before .Rs only below SEE ALSO * newline after .Lb only below LIBRARY --- usr.bin/mandoc/mdoc_term.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'usr.bin') 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 * @@ -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); } -- cgit v1.2.3