aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2017-03-04 17:17:34 +0000
committerIngo Schwarze <schwarze@openbsd.org>2017-03-04 17:17:34 +0000
commitaa7b97b7b53276fe80370d81c08c6f20e4103148 (patch)
tree559c24f1155b2d3320f6b73a04cd7ed26b6b0969 /mandoc.1
parent4dd8e4dab8c577e7d1e8319f40531c12dad30148 (diff)
downloadmandoc-aa7b97b7b53276fe80370d81c08c6f20e4103148.tar.gz
mandoc-aa7b97b7b53276fe80370d81c08c6f20e4103148.tar.zst
mandoc-aa7b97b7b53276fe80370d81c08c6f20e4103148.zip
Make the description of -K autodetection easer to understand.
Basic idea suggested by jmc@, OK jmc@.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.134
1 files changed, 21 insertions, 13 deletions
diff --git a/mandoc.1 b/mandoc.1
index 686d6fb6..c5f38c2b 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,4 +1,4 @@
-.\" $Id: mandoc.1,v 1.175 2017/03/03 14:23:23 schwarze Exp $
+.\" $Id: mandoc.1,v 1.176 2017/03/04 17:17:34 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
.\" Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
@@ -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: March 3 2017 $
+.Dd $Mdocdate: March 4 2017 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -98,21 +98,29 @@ arguments are
.Cm iso-8859-1 ,
and
.Cm utf-8 .
-If not specified, autodetection uses the first match:
-.Bl -tag -width iso-8859-1
-.It Cm utf-8
-if the first three bytes of the input file
-are the UTF-8 byte order mark (BOM, 0xefbbbf)
-.It Ar encoding
-if the first or second line of the input file matches the
+If not specified, autodetection uses the first match in the following
+list:
+.Bl -enum
+.It
+If the first three bytes of the input file are the UTF-8 byte order
+mark (BOM, 0xefbbbf), input is interpreted as
+.Cm utf-8 .
+.It
+If the first or second line of the input file matches the
.Sy emacs
mode line format
.Pp
.D1 .\e" -*- Oo ...; Oc coding: Ar encoding ; No -*-
-.It Cm utf-8
-if the first non-ASCII byte in the file introduces a valid UTF-8 sequence
-.It Cm iso-8859-1
-otherwise
+.Pp
+then input is interpreted according to
+.Ar encoding .
+.It
+If the first non-ASCII byte in the file introduces a valid UTF-8
+sequence, input is interpreted as
+.Cm utf-8 .
+.It
+Otherwise, input is interpreted as
+.Cm iso-8859-1 .
.El
.It Fl k
A synonym for