URL:
  <https://savannah.gnu.org/bugs/?66290>

                 Summary: [tbl] resurrects disabled line numbering after table
region
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Fri 04 Oct 2024 09:34:35 AM UTC
                Category: Preprocessor tbl
                Severity: 4 - Important
              Item Group: Incorrect behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Fri 04 Oct 2024 09:34:35 AM UTC By: G. Branden Robinson <gbranden>
This is incorrect.


$ cat /tmp/badtbl.roff 
.nf
.nm 1
This is temporarily line-numbered text.
alpha
beta
.nm
Now it is off.
.TS
L.
I am a table.
I have two rows.
.TE
gamma
delta
Line numbering had better still be off.
$ ~/groff-stable/bin/nroff -t /tmp/badtbl.roff | cat -s
  1 This is temporarily line‐numbered text.
  2 alpha
  3 beta
Now it is off.
I am a table.
I have two rows.
  4 gamma
  5 delta
  6 Line numbering had better still be off.



Deri observed this in the UTP document in its 1.0 branch when rendered for
PostScript, but it's much more general as can be seen above.

A workaround is `.nr ln 0` before a table region.  If `ln`'s value is precious
it should of course be saved in a different register first, and restored
before resuming numbering with the `nm` request at some point after the table
region.

Setting to "Important" severity since this is a regression in behavior from
_groff_ 1.22.4 to 1.23.0.  (However, if this problem makes downgrading to
1.22.4 sound seductive, you probably want to be aware of bug #59812 at least.)







    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to