From e9d24264e27dc7cfcd1fc87cd2e50cc710121ed5 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_html.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'mdoc_html.c') diff --git a/mdoc_html.c b/mdoc_html.c index 4d42a5b7..c0e9b4ef 100644 --- a/mdoc_html.c +++ b/mdoc_html.c @@ -1,4 +1,4 @@ -/* $Id: mdoc_html.c,v 1.149 2011/01/29 14:49:44 kristaps Exp $ */ +/* $Id: mdoc_html.c,v 1.150 2011/02/02 21:40:45 kristaps Exp $ */ /* * Copyright (c) 2008, 2009, 2010 Kristaps Dzonsons * @@ -780,7 +780,8 @@ static int mdoc_ns_pre(MDOC_ARGS) { - h->flags |= HTML_NOSPACE; + if ( ! (MDOC_LINE & n->flags)) + h->flags |= HTML_NOSPACE; return(1); } -- cgit v1.2.3-56-ge451