groff-commit
[Top][All Lists]
Advanced

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

[groff] 27/32: NEWS: Add item regarding tbl and line numbering.


From: G. Branden Robinson
Subject: [groff] 27/32: NEWS: Add item regarding tbl and line numbering.
Date: Wed, 30 Nov 2022 07:26:13 -0500 (EST)

gbranden pushed a commit to branch master
in repository groff.

commit cd6c3bacfd7c2bacafe4fa55e56c57983dc43d64
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
AuthorDate: Tue Nov 29 09:08:39 2022 -0600

    NEWS: Add item regarding tbl and line numbering.
    
    $ cat ~/tmp/line-numbered-table.roff
    .nm 1
    Here is a line of output.
    Sic transit adispicing meatballs.
    Let's pad it out with more content to ensure the line breaks.
    .TS
    L.
    This is my table.
    There are many like it but this one is mine.
    T{
    My table is my best exhibit;
    I will guard it as I guard my life.
    Even as it requires multiple output lines for an entry.
    T}
    .TE
    What is the line number now?
    
    I defy anyone to defend this:
    
    Unix Version 7 on a SIMH PDP-11/45 (and Heirloom Doctools troff today):
    
      1 Here is a line of  output.   Sic  transit  adispicing  meatballs.
      2 Let's pad it out with more content to ensure the line breaks.
      6 This is my table.
      7 There are many like it but this one is mine.
      8
      9   3 My table is my best exhibit; I will guard it
     10   4 as  I  guard  my  life.  Even as it requires
     11   5 multiple output lines for an entry.
     12 What is the line number now?
---
 NEWS | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/NEWS b/NEWS
index 1a2c75fd6..26ca909ac 100644
--- a/NEWS
+++ b/NEWS
@@ -137,6 +137,14 @@ o The token `.PY` is now recognized as a synonym of `.PF` 
to work around
   to use `.PF` to end pictures with flyback unless a similar problem
   faces your document.
 
+tbl
+---
+
+o GNU tbl now saves and restores the status of output line numbering
+  when formatting tables, including the count of lines for which
+  numbering is suppressed.  Historical tbl implementations did not, with
+  bizarre consequences when text blocks were used in tables.
+
 Macro packages
 --------------
 



reply via email to

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