[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] Q: .B man macros and escape
From: |
Denis M. Wilson |
Subject: |
Re: [Groff] Q: .B man macros and escape |
Date: |
Thu, 4 Oct 2012 14:30:56 +0100 |
Hello All,
The line .B "\\n" turns into \n which looks like a number register
without an argument: if you try
groff -ww -man example.1 > /dev/null
you will see the error message
example.1:4: a newline character is not allowed in an escape
name
It's not a man bug, it's troff expected behaviour, you should use
\en "or even better \[rs]" to quote the man page groff.7
Denis
On Thu, 04 Oct 2012 14:36:24 +0200
walter harms <address@hidden> wrote:
> Hi list,
> i found a minor issue within the man macros.
> Most likely this is a know behaver but i found no mention of it.
>
> As documented you can escape "\" by using "\\" or "\e\".
> This went wrong in a man page. Please try the striped down example:
>
> .TH test 3 test
> .SH test
> .B "\en"
> .B "\\n"
>
> with "man -l example.1" i see the \n only once.
> Bug of feature ?
> NTL i found no mention in groff_man.
>
> re
> wh
>
>
--
() ascii ribbon campaign - against html e-mail
/\ www.asciiribbon.org - against proprietary attachments