summaryrefslogtreecommitdiffstats
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-06-25 17:43:45 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-06-25 17:43:45 +0000
commit92e2fd64e66c67235199e6c6f8bc9c6ef714a04d (patch)
treed269b58678ab23112fc57440b2bdd6226b9de93f /mandoc.1
parentde503f7238316cd79aad65b66e4c4c4f71f0153b (diff)
downloadmandoc-92e2fd64e66c67235199e6c6f8bc9c6ef714a04d.tar.gz
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.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.15
1 files changed, 5 insertions, 0 deletions
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