diff options
author | 2019-07-15 19:20:18 +0000 | |
---|---|---|
committer | 2019-07-15 19:20:18 +0000 | |
commit | 2def07de7f842e34b2313830ba04423de494688f (patch) | |
tree | d618a64998ab67a48ec6e4cae8b56767880d9464 | |
parent | Simplify code to work out if an extra line is needed in the cell. (diff) | |
download | wireguard-openbsd-2def07de7f842e34b2313830ba04423de494688f.tar.xz wireguard-openbsd-2def07de7f842e34b2313830ba04423de494688f.zip |
explain escaping of end-of-sentence characters;
missing info reported by Ian <ropers at gmail dot com> on misc@
-rw-r--r-- | share/man/man7/mdoc.7 | 11 | ||||
-rw-r--r-- | share/man/man7/roff.7 | 10 |
2 files changed, 17 insertions, 4 deletions
diff --git a/share/man/man7/mdoc.7 b/share/man/man7/mdoc.7 index 7ead3e3b9b6..bf3eaa506f2 100644 --- a/share/man/man7/mdoc.7 +++ b/share/man/man7/mdoc.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: mdoc.7,v 1.167 2019/05/11 07:18:15 deraadt Exp $ +.\" $OpenBSD: mdoc.7,v 1.168 2019/07/15 19:20:18 schwarze Exp $ .\" .\" Copyright (c) 2009, 2010, 2011 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2010, 2011, 2013-2018 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: May 11 2019 $ +.Dd $Mdocdate: July 15 2019 $ .Dt MDOC 7 .Os .Sh NAME @@ -3017,6 +3017,13 @@ in the same way as a plain .Sq \&| character. Using this predefined string is not recommended in new manuals. +.Pp +Appending a zero-width space +.Pq Sq \e& +to the end of an input line is also useful to prevent the interpretation +of a trailing period, exclamation or question mark as the end of a +sentence, for example when an abbreviation happens to occur +at the end of a text or macro input line. .Ss Font handling In .Nm diff --git a/share/man/man7/roff.7 b/share/man/man7/roff.7 index 005286d9b29..fa58834a1b8 100644 --- a/share/man/man7/roff.7 +++ b/share/man/man7/roff.7 @@ -1,4 +1,4 @@ -.\" $OpenBSD: roff.7,v 1.93 2019/07/01 23:29:50 schwarze Exp $ +.\" $OpenBSD: roff.7,v 1.94 2019/07/15 19:20:18 schwarze Exp $ .\" .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons <kristaps@bsd.lv> .\" Copyright (c) 2010-2019 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: July 1 2019 $ +.Dd $Mdocdate: July 15 2019 $ .Dt ROFF 7 .Os .Sh NAME @@ -315,12 +315,18 @@ delimiters The proper spacing is also intelligently preserved if a sentence ends at the boundary of a macro line. .Pp +If an input line happens to end with a period, exclamation or question +mark that isn't the end of a sentence, append a zero-width space +.Pq Sq \e& . +.Pp Examples: .Bd -literal -offset indent -compact Do not end sentences mid-line like this. Instead, end a sentence like this. A macro would end like this: \&.Xr mandoc 1 \&. +An abbreviation at the end of an input line needs escaping, e.g.\e& +like this. .Ed .Sh REQUEST SYNTAX A request or macro line consists of: |