]> git.ipfire.org Git - thirdparty/man-pages.git/commitdiff
man-pages.7: Update nonbreaking space advice
authorG. Branden Robinson <g.branden.robinson@gmail.com>
Fri, 12 Nov 2021 21:50:14 +0000 (08:50 +1100)
committerAlejandro Colomar <alx.manpages@gmail.com>
Sat, 13 Nov 2021 00:21:15 +0000 (01:21 +0100)
* Advise usage of \~ escape instead of \SPACE; the former, a groff
  extension from circa 1990, has been supported by Heirloom Doctools
  troff since 2005 and by mandoc since 2019.  The advantage is that
  \~ is an _adjustable_ non-breaking space, so it will typeset
  non-jarringly both in .EX/.EE examples when filling is off, and in
  normal running text (which is filled).

See linux-man@ list discussion at
<https://lore.kernel.org/linux-man/\
20210729115508.pt6btsqd7g5tuhg6@localhost.localdomain/> and follow-ups.

Signed-off-by: G. Branden Robinson <g.branden.robinson@gmail.com>
Signed-off-by: Alejandro Colomar <alx.manpages@gmail.com>
man7/man-pages.7

index 96c3deb203acffb50eacd080ec0e0dc2b1c9f54c..23015b00a66b5ed95f626b8476ef9b9a37af9422 100644 (file)
@@ -689,7 +689,7 @@ If the command is short, then it can be included inline in the text,
 in italic format, for example,
 .IR "man 7 man-pages" .
 In this case, it may be worth using nonbreaking spaces
-("\e\ ") at suitable places in the command.
+(\e\(ti) at suitable places in the command.
 Command options should be written in italics (e.g.,
 .IR \-l ).
 .PP