=================================================================== RCS file: /cvs/mandoc/roff.7,v retrieving revision 1.112 retrieving revision 1.117 diff -u -p -r1.112 -r1.117 --- mandoc/roff.7 2019/04/21 22:48:58 1.112 +++ mandoc/roff.7 2022/05/20 13:09:13 1.117 @@ -1,7 +1,7 @@ -.\" $Id: roff.7,v 1.112 2019/04/21 22:48:58 schwarze Exp $ +.\" $Id: roff.7,v 1.117 2022/05/20 13:09:13 schwarze Exp $ .\" +.\" Copyright (c) 2010-2019, 2022 Ingo Schwarze .\" Copyright (c) 2010, 2011, 2012 Kristaps Dzonsons -.\" Copyright (c) 2010-2019 Ingo Schwarze .\" .\" 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: April 21 2019 $ +.Dd $Mdocdate: May 20 2022 $ .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: @@ -618,7 +624,7 @@ Its syntax can be either .Pp or .Bd -literal -offset indent -.Pf . Ic \&de Ar macroname Ar endmacro +.Pf . Ic \&de Ar macroname endmacro .Ar definition .Pf . Ar endmacro .Ed @@ -2160,8 +2166,8 @@ Break the output line at the end of the current word. Set number register; ignored by .Xr mandoc 1 . .It Ic \er -Move up by one line; ignored by -.Xr mandoc 1 . +Reverse line feed: move up by one output line. +Currently unsupported. .It Ic \eS\(aq Ns Ar number Ns Ic \(aq Slant output; ignored by .Xr mandoc 1 . @@ -2278,7 +2284,7 @@ code. .Pp The special semantics of the .Cm nS -number register is an idiosyncracy of +number register is an idiosyncrasy of .Ox manuals and not supported by other .Xr mdoc 7 @@ -2325,7 +2331,7 @@ for .At v2 , then ported nroff to C as troff, which Brian W. Kernighan released with .At v7 . -In 1989, James Clarke re-implemented troff in C++, naming it groff. +In 1989, James Clark re-implemented troff in C++, naming it groff. .Sh AUTHORS .An -nosplit This