From 0afdbc2d6f1166669ab799d0a3305e9e930ff5ce Mon Sep 17 00:00:00 2001 From: Ingo Schwarze Date: Mon, 15 Jul 2019 19:20:30 +0000 Subject: explain escaping of end-of-sentence characters; missing info reported by Ian on misc@ --- roff.7 | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'roff.7') diff --git a/roff.7 b/roff.7 index e434eec8..7f224edb 100644 --- a/roff.7 +++ b/roff.7 @@ -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: -- cgit