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

                 Summary: tbl reports incorrect line numbers in diagnostics
                 Project: GNU troff
            Submitted by: gbranden
            Submitted on: Thu 13 May 2021 10:41:10 AM UTC
                Category: Preprocessor tbl
                Severity: 3 - Normal
              Item Group: Incorrect behaviour
                  Status: In Progress
                 Privacy: Public
             Assigned to: gbranden
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None

    _______________________________________________________

Details:

...sometimes.

Namely, when input line continuation (\RET) is used inside the table.

Reproducer:

$ nl reproducer.roff 
     1  .TS
     2  l l.
     3  foo     bar
     4  baz     qux\
     5          fnord
     6  baz     qux\
     7          fnord
     8  .TE
$ tbl reproducer.roff >/dev/null
tbl:reproducer.roff:4: excess data entry 'fnord' discarded
tbl:reproducer.roff:5: excess data entry 'fnord' discarded


Fortunately, I have a fix.


$ ./build/tbl reproducer.roff >/dev/null
./build/tbl:reproducer.roff:4: error: line continuation escape at line 4
./build/tbl:reproducer.roff:5: error: excess data entry 'fnord' discarded
./build/tbl:reproducer.roff:6: error: line continuation escape at line 6
./build/tbl:reproducer.roff:7: error: excess data entry 'fnord' discarded


I'll be getting rid of those "line continuation escape" diagnostics before
committing.




    _______________________________________________________

Reply to this item at:

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

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


Reply via email to