From ce3e6e6c76cc1cfca6d316eee86a713e5a145ba6 Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Tue, 27 Jun 2017 12:18:00 +0000 Subject: warn about .Ns macros that have no effect because they are followed by an isolated closing delimiter; inspired by mdoclint --- mandoc.1 | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'mandoc.1') diff --git a/mandoc.1 b/mandoc.1 index 156db98d..7ac89ed9 100644 --- a/mandoc.1 +++ b/mandoc.1 @@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.207 2017/06/25 17:43:45 schwarze Exp $ +.\" $Id: mandoc.1,v 1.208 2017/06/27 12:18:00 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons .\" Copyright (c) 2012, 2014-2017 Ingo Schwarze @@ -15,7 +15,7 @@ .\" ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF .\" OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. .\" -.Dd $Mdocdate: June 25 2017 $ +.Dd $Mdocdate: June 27 2017 $ .Dt MANDOC 1 .Os .Sh NAME @@ -1175,7 +1175,9 @@ The paragraph macro is moved after the end of the list. .Pq mdoc An input line begins with an .Ic \&Ns -macro. +macro, or the next argument after an +.Ic \&Ns +macro is an isolated closing delimiter. The macro is ignored. .It Sy "blocks badly nested" .Pq mdoc -- cgit v1.2.3-56-ge451