[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: macro returning a value?
From: |
Peter Schaffter |
Subject: |
Re: macro returning a value? |
Date: |
Tue, 16 Nov 2021 15:17:58 -0500 |
User-agent: |
Mutt/1.9.4 (2018-02-28) |
Ulrich --
On Mon, Nov 15, 2021, Ulrich Lauther wrote:
> I cannot reproduce the case without the blank and no extra blank
> line. In the attached file the macro Pos1 gives the correct
> result, but an extra line.
Tack \c onto the end to suppress the line break that's causing the
blank line.
.de Pos1
\R'foo1 (\\n[.d]*254+72)/72000' \\n[foo1] mm/10\c
..
> Pos2 gives a wrong result, but I don't see any error message.
> With "man groff" I cannot find an option to enable error messages.
groff -Tps -w all test > test.ps
> Pos3 gives the correct result without an extra line.
Which it should. The result is identical to Pos1 with \c.
Hope this helps.
--
Peter Schaffter
https://www.schaffter.ca