[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[groff] address@hidden: Re: om.tmac: Same question asked again, although
From: |
Peter Schaffter |
Subject: |
[groff] address@hidden: Re: om.tmac: Same question asked again, although already asked (repeated " if 'a'b' " inside " if 'a'b' ") |
Date: |
Fri, 14 Sep 2018 18:17:07 -0400 |
User-agent: |
Mutt/1.5.24 (2015-08-30) |
On Fri, Sep 14, 2018, Bjarni Ingi Gislason wrote:
> File: contrib/mom/om.tmac.
>
> In the macro ".MAC LIST END", a question is repeated inside the
> same one, namely
>
> if !'\\n[.z]'LIST*DIV'
>
> in
>
> . if '\\*[pre-list-quad]'C' \{\
> . if !'\\n[.z]'LIST*DIV' \{\
> . nr #PRE_LIST_QUAD \\n[.j]
> . nr #LIST_CENTER 1
> . if !'\\n[.z]'LIST*DIV' .di LIST*DIV
> \!. nr #IN_LIST 1
> . ad l
> . \}
>
> and few lines later:
>
> . if '\\*[pre-list-quad]'R' \{\
> . if !'\\n[.z]'LIST*DIV' \{\
> . nr #PRE_LIST_QUAD \\n[.j]
> . nr #LIST_RIGHT 1
> . if !'\\n[.z]'LIST*DIV' .di LIST*DIV
> \!. nr #IN_LIST 1
> . ad l
> . \}
>
> Must the question be repeated as a diversion plays a role?
No. It's a debugging artefact. I intended to clean-up and wrap the
two clauses into a single statement
. if !'\\n[.z]'LIST*DIV' \{\
. if '\\*[pre-list-quad]'C' .nr #LIST_CENTER 1
. if '\\*[pre-list-quad]'R' .nr #LIST_RIGHT 1
. nr #PRE_LIST_QUAD \\n[.j]
. di LIST*DIV
\!. nr #IN_LIST 1
. ad l
. \}
I'll incorporate the change into my next commit.
--
Peter Schaffter
http://www.schaffter.ca
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [groff] address@hidden: Re: om.tmac: Same question asked again, although already asked (repeated " if 'a'b' " inside " if 'a'b' "),
Peter Schaffter <=