bug-groff
[Top][All Lists]
Advanced

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

[bug #64105] [eqn] off-by-one error in line numbering


From: G. Branden Robinson
Subject: [bug #64105] [eqn] off-by-one error in line numbering
Date: Tue, 30 May 2023 14:55:04 -0400 (EDT)

Update of bug #64105 (project groff):

                  Status:         Ready for Merge => In Progress            

    _______________________________________________________

Follow-up Comment #4:

I found another case.  This is from groff Git HEAD.


$ nl EXPERIMENTS/eqn-delimited-64105.roff
     1  .EQ
     2  delim $$
     3  .EN
     4  foo bar $x = 1
$ ./build/eqn -Tascii EXPERIMENTS/eqn-delimited-64105.roff >/dev/null
./build/eqn:EXPERIMENTS/eqn-delimited-64105.roff:3: fatal error: unterminated
inline equation; started with '$', expecting '$'
$ ./build/eqn -N -Tascii EXPERIMENTS/eqn-delimited-64105.roff >/dev/null
./build/eqn:EXPERIMENTS/eqn-delimited-64105.roff:3: error: unterminated inline
equation; started with '$', expecting '$'


This is only partially a regression from 1.22.4, because that _eqn_ got the
number wrong the other way if `-N` wasn't specified.


$ eqn -Tascii EXPERIMENTS/eqn-delimited-64105.roff >/dev/null
eqn:EXPERIMENTS/eqn-delimited-64105.roff:5: fatal error: unterminated '$' at
line 4, looking for '$'
$ eqn -N -Tascii EXPERIMENTS/eqn-delimited-64105.roff >/dev/null
eqn:EXPERIMENTS/eqn-delimited-64105.roff:4: missing '$'




    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?64105>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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