groff
[Top][All Lists]
Advanced

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

[Groff] .di behaviour


From: Werner LEMBERG
Subject: [Groff] .di behaviour
Date: Wed, 18 Oct 2000 12:01:27 +0200 (CEST)

Dear friends,


look at the following input:

xxx
.
.di test
yyy
.br
.di
.
zzz
\*[test]

This yields:

zzz xxx yyy

Another example:

xxx
.
.di test
yyy
.br
zzz
.di
.
aaa
\*[test]

This yields:

zzz aaa xxx yyy


Where is it documented that (a) at the beginning of a diversion,
partial input lines are included in the diversion and (b) that a
diversion must be finished with a line break (which will be dropped)?

With other words, the right way to write the first example is

xxx
.
.di test
.br
yyy
.br
.di
.
zzz
\*[test]

to get

xxx zzz yyy


Is this behaviour identical to UNIX troff?


    Werner

reply via email to

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