[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] removing environments
From: |
Tadziu Hoffmann |
Subject: |
Re: [Groff] removing environments |
Date: |
Wed, 24 May 2006 12:33:23 +0200 |
User-agent: |
Mutt/1.5.11 |
> . nr env-count 0 1
> .
> . de CI
> . ev e-\\n+[env-count]
> . nop \&\\$*
> . nr have-int \\n[.int]
> . ev
> . fam C
> . ie \\n[have-int] \{\
> . I \&\\$*
> . fam
> . \}
> . el \
> . I \&\\$*\F[]
> ..
This seems to screw up for very long arguments. I guess you
need to evaluate the nop inside a diversion, otherwise if the
argument results in more than one output line only the last
remaining stuff remains in the current partial line of the
environment, the completed lines get printed.
But how about this:
.de CI
.ds xx \\n[.fam]
.fam C
.I address@hidden
.fam
..