aboutsummaryrefslogtreecommitdiffstatshomepage
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
commit1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa (patch)
tree78c84c03a6f5831ed6c6f758e4b370367dba22af /mandoc.1
parent968237f527c0925ee4300f535b2efb1d2a9e783f (diff)
downloadmandoc-1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa.tar.gz
mandoc-1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa.tar.zst
mandoc-1fdb4db7a387f66dbf9fc6b0869d19dfe765a5aa.zip
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.17
1 files changed, 6 insertions, 1 deletions
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 <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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