[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Groff] mom bug: ALPHA list
From: |
Peter Schaffter |
Subject: |
Re: [Groff] mom bug: ALPHA list |
Date: |
Sat, 28 Feb 2015 10:00:51 -0500 |
User-agent: |
Mutt/1.5.21 (2010-09-15) |
On Sat, Feb 28, 2015, Ellam ByDefault wrote:
> Given simple input as follows,
>
> .PRINTSTYLE TYPESET
> .START
> .PP
> Lorem ipsum.
> .LIST ALPHA
> .ITEM
> one
> .ITEM
> two
> .ITEM
> three
> .LIST END
>
> mom unexpectedly typeset
>
> nr #LIST_INDENT1 21600
>
> appended at the paragraph.
>
> I dug in the om.tmac of mom 2.1 and found out there's missing period
> before nr request at line 15243:
>
> . if '\\*[$LIST_ARG_1]'ALPHA' nr #LIST_INDENT\\n[#DEPTH] \
>
> While in mom 2.0-a it's at line 11133:
>
> .if '\\*[$LIST_ARG_1]'ALPHA' nr #LIST_INDENT\\n[#DEPTH] \
>
> Putting a period before the nr cures the bug.
>
> Tested on groff 1.22.2 with mom 2.0-a and 2.1.
Fixed in the repo. Thanks.
--
Peter Schaffter
http://www.schaffter.ca