aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/mandoc.1
diff options
context:
space:
mode:
authorIngo Schwarze <schwarze@openbsd.org>2018-03-16 15:05:44 +0000
committerIngo Schwarze <schwarze@openbsd.org>2018-03-16 15:05:44 +0000
commitbbd260dcd38e0e50fc5c35b6d65bf2caf4459198 (patch)
tree176c4b9e670190db28d74ef1c446e7d5121837b4 /mandoc.1
parent9fe450461bc85144434bb25f42f7c9f6bafa8da4 (diff)
downloadmandoc-bbd260dcd38e0e50fc5c35b6d65bf2caf4459198.tar.gz
mandoc-bbd260dcd38e0e50fc5c35b6d65bf2caf4459198.tar.zst
mandoc-bbd260dcd38e0e50fc5c35b6d65bf2caf4459198.zip
Style message about bad input encoding of em-dashes as -- instead of \(em.
Suggested by Thomas Klausner <wiz at NetBSD>; discussed with jmc@.
Diffstat (limited to 'mandoc.1')
-rw-r--r--mandoc.112
1 files changed, 9 insertions, 3 deletions
diff --git a/mandoc.1 b/mandoc.1
index 9f04db83..3bd329a7 100644
--- a/mandoc.1
+++ b/mandoc.1
@@ -1,7 +1,7 @@
-.\" $Id: mandoc.1,v 1.221 2017/11/28 20:26:21 schwarze Exp $
+.\" $Id: mandoc.1,v 1.222 2018/03/16 15:05:44 schwarze Exp $
.\"
.\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv>
-.\" Copyright (c) 2012, 2014-2017 Ingo Schwarze <schwarze@openbsd.org>
+.\" Copyright (c) 2012, 2014-2018 Ingo Schwarze <schwarze@openbsd.org>
.\"
.\" Permission to use, copy, modify, and distribute this software for any
.\" purpose with or without fee is hereby granted, provided that the above
@@ -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: November 28 2017 $
+.Dd $Mdocdate: March 16 2018 $
.Dt MANDOC 1
.Os
.Sh NAME
@@ -952,6 +952,12 @@ An
request occurs even though the document already switched to no-fill mode
and did not switch back to fill mode yet.
It has no effect.
+.It Sy "verbatim \(dq--\(dq, maybe consider using \e(em"
+.Pq mdoc
+Even though the ASCII output device renders an em-dash as
+.Qq \-\- ,
+that is not a good way to write it in an input file
+because it renders poorly on all other output devices.
.It Sy "function name without markup"
.Pq mdoc
A word followed by an empty pair of parentheses occurs on a text line.