[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] preparing for nroff vrs html output?
From: |
James J. Ramsey |
Subject: |
Re: [Groff] preparing for nroff vrs html output? |
Date: |
Fri, 10 Jan 2003 14:49:08 -0800 (PST) |
--- address@hidden wrote:
> I'd like to format a list in a
> different way, depending on the
> output:
>
> .if t .IP "\s-2\(bu\s+2"
> .if n .IP "*" 1i
> .if '\*[.T]'html' .LI
> List element 1
>
> This works fine for troff or nroff output. However,
> for html output, I get an
> extra <P> due to the ".if n" test, before the <LI>
> begins.
How about
.ie t .IP "\s-2\(bu\s+2" \" For troff
.el \{\
. ie '\*[.T]'html' .LI \" For html
. el .IP "*" 1i \" For neither troff nor
. \" html (presumably nroff)
. \}
__________________________________________________
Do you Yahoo!?
Yahoo! Mail Plus - Powerful. Affordable. Sign up now.
http://mailplus.yahoo.com