From fe1e1c9e6ff55e0dc447b3cbe2c90acec57abb94 Mon Sep 17 00:00:00 2001 From: Kristaps Dzonsons Date: Wed, 2 Feb 2011 21:40:45 +0000 Subject: If `Ns' is specified on its own line, it should be ignored. This is shitty groff behaviour. Do the same, but raise a warning to this effect. This from a TODO noted by schwarze@. --- mdoc_term.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'mdoc_term.c') diff --git a/mdoc_term.c b/mdoc_term.c index 942753b0..bad775e9 100644 --- a/mdoc_term.c +++ b/mdoc_term.c @@ -1151,7 +1151,8 @@ static int termp_ns_pre(DECL_ARGS) { - p->flags |= TERMP_NOSPACE; + if ( ! (MDOC_LINE & n->flags)) + p->flags |= TERMP_NOSPACE; return(1); } -- cgit