[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] strings on successive lines bug?
From: |
Werner LEMBERG |
Subject: |
Re: [Groff] strings on successive lines bug? |
Date: |
Tue, 01 Jul 2003 00:01:46 +0200 (CEST) |
> There seems to be a bug in the way strings on consecutive lines are
> expanded.
No, this is correct behaviour.
> Here is an example file.
>
> .ds one 1
> .ds two 2
> .one
> .two
While macros, diversions, and strings are basically the same in groff,
there actually *are* differences. The last character of a macro (and
a diversion) definition is always a newline, whereas a string doesn't
contain a newline at all -- otherwise \*[...] wouldn't work as
expected.
> Only the first string, .one, gets translated. So
> output looks like
>
> 1.two
The newline character after `1' is used to terminate the string called
as a macro.
Does original troff behave differently? I don't think so.
Werner