From 92e2fd64e66c67235199e6c6f8bc9c6ef714a04d 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 | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mandoc.1') diff --git a/mandoc.1 b/mandoc.1 index 0d85d914..1d731558 100644 --- a/mandoc.1 +++ b/mandoc.1 @@ -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