bugGNU roff - Bugs: bug #63838, [tbl] doesn't warn if table entry...

 
 

bug #63838: [tbl] doesn't warn if table entry ends with \z escape sequence

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Sun 26 Feb 2023 12:48:50 AM UTC
   
 
Category:  Preprocessor tbl Severity:  3 - Normal
Item Group:  Warning/Suspicious behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.24.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 10 Jul 2023 08:47:21 AM UTC, comment #1: 


commit 8209b72061ea7fb0380bdb42e6e68d80117aac7c
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Sat Feb 25 18:44:58 2023 -0600

    [tbl]: Fix Savannah #63838.

    * src/preproc/tbl/table.cpp (table::add_entry): Throw error diagnostic
      if table entry ends in the zero-motion escape sequence `\z`.  This is
      nonsense and provokes baffling diagnostics from the formatter.  Stick
      user's nose directly into the problem.

    Fixes <https://savannah.gnu.org/bugs/?63838>.  Thanks to the mandoc(1)
    project for documenting the issue in a regression test.

    Also annotate a null pointer with `nullptr` comment to ease any future
    transition to C++11, which defines it as a keyword.


G. Branden Robinson <gbranden>
Group administrator
Sun 26 Feb 2023 12:48:50 AM UTC, original submission:  

Seen in mandoc(1) regression tests.

We don't warn about this.  We should.


$ cat ATTIC/escape-z-at-end-of-table-data.roff
.\" inspired by a mandoc(1) regression test
.TS
tab(:);
LL.
foo:bar
baz\z:qux
.TE
.pl \n(nlu


Fix pending.  Time for a post-1.23.0 branch!

G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 4 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2023-07-10 gbranden StatusReady for Merge Fixed
        Open/ClosedOpen Closed
    2023-03-13 gbranden StatusIn Progress Ready for Merge
    2023-03-09 gbranden Planned ReleaseNone 1.24.0

    Back to the top

    Powered by Savane 3.13-d3ae.
    Corresponding source code