Re: [PATCH] man-pages.7: Correct escaping of \~ advice

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Jun 13, 2024 at 01:53:27PM GMT, Brian Norris wrote:
> \e[ti] renders as \[ti] -- using \[ti] in a man page will produce a
> literal tilde (~), not a nonbreaking space.
> 
> The intention here is to recommend \~, which produces a nonbreaking
> space, so we need some more escaping.
> 
> Apply bold formatting too, which I believe is in accordance with the
> advice in this section.
> 
> Signed-off-by: Brian Norris <briannorris@xxxxxxxxxxxx>

Hi Brian, Branden,

Patch applied.
<https://www.alejandro-colomar.es/src/alx/linux/man-pages/man-pages.git/commit/?h=contrib&id=f1b6abcf7550f6eaba08ca91d6e05d77beee5766>

Have a lovely night!
Alex

> ---
>  man/man7/man-pages.7 | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)
> 
> diff --git a/man/man7/man-pages.7 b/man/man7/man-pages.7
> index c7251d1340a5..007b9e7a2fc5 100644
> --- a/man/man7/man-pages.7
> +++ b/man/man7/man-pages.7
> @@ -725,7 +725,8 @@ .SS Formatting conventions (general)
>  in italic format, for example,
>  .IR "man 7 man-pages" .
>  In this case, it may be worth using nonbreaking spaces
> -(\e[ti]) at suitable places in the command.
> +.RB ( \[rs]\[ti] )
> +at suitable places in the command.
>  Command options should be written in italics (e.g.,
>  .IR \-l ).
>  .P
> -- 
> 2.45.2.627.g7a2c4fd464-goog
> 

-- 
<https://www.alejandro-colomar.es/>

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux