From 1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Sun, 25 Jun 2017 17:43:45 +0000 Subject: Catch typos in .Sh names; suggested by jmc@. I'm using a very simple, linear time / zero space fuzzy string matching heuristic rather than a full Levenshtein metric, to keep the code both simple and fast. --- mandoc.1 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'mandoc.1') diff --git a/mandoc.1 b/mandoc.1 index 9906a39d..156db98d 100644 --- a/mandoc.1 +++ b/mandoc.1 @@ -1,4 +1,4 @@ -.\" $Id: mandoc.1,v 1.206 2017/06/25 11:42:02 schwarze Exp $ +.\" $Id: mandoc.1,v 1.207 2017/06/25 17:43:45 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons .\" Copyright (c) 2012, 2014-2017 Ingo Schwarze @@ -857,6 +857,11 @@ A single manual page contains two copies of the RCS identifier for the same operating system. Consider deleting the later instance and moving the first one up to the top of the page. +.It Sy "typo in section name" +.Pq mdoc +Fuzzy string matching revealed that the argument of an +.Ic \&Sh +macro is similar, but not identical to a standard section name. .It Sy "useless macro" .Pq mdoc A -- cgit v1.2.3-56-ge451