groff
[Top][All Lists]
Advanced

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

Re: <OK> [Groff] comments in non-fill mode


From: Mike Bianchi
Subject: Re: <OK> [Groff] comments in non-fill mode
Date: Wed, 3 Sep 2008 09:05:49 -0400
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

On Wed, Sep 03, 2008 at 08:50:04AM -0400, Louis Guillaume wrote:
> Hi!
>
> It appears that comments are "counted" in non-fill mode. Is this by  
> design for some reason?
>
> ----8<-------8<-------
> .nf
> text text text text text text text
> \".ps 14
> \".vs 15
> \"\v'-3.05'TEXT TEXT TEXT TEXT
> \"\v'-3.05'\n[year]\(bu\n[mo]\(bu\n[dy]
> TEXT TEXT TEXT TEXT
> \n[year]\(bu\n[mo]\(bu\n[dy]
>
> ---->8------->8-------
>
> remove the comments and the text pushes up.
>
> Louis

That's because the  \"  makes the _rest_ of the line a comment.

I have long used  '\"  as my comment header for full-line comments and that
works here.  So does  .\" .

Recently I've preferred groff's  \#  as the comment marker.

 man 7 groff  includes the following ...

   \"     Beginning of a comment.  Everything up to the end of the line is
          ignored.

   \#     Everything  up  to  and  including  the next newline is ignored.
          This is interpreted in copy mode.  This is like  \"  except that
          the terminating newline is ignored as well.

-- 
 Mike Bianchi
 Foveal Systems

 973 822-2085   call to arrange Fax

 address@hidden
 http://www.AutoAuditorium.com
 http://www.FovealMounts.com




reply via email to

[Prev in Thread] Current Thread [Next in Thread]