URL: <https://savannah.gnu.org/bugs/?64862>
Summary: [tbl] clobbers value of previously selected font Group: GNU roff Submitter: gbranden Submitted: Sun 05 Nov 2023 10:10:08 PM UTC Category: Preprocessor tbl Severity: 3 - Normal Item Group: Incorrect behaviour Status: None Privacy: Public Assigned to: None Open/Closed: Open Discussion Lock: Any Planned Release: None _______________________________________________________ Follow-up Comments: ------------------------------------------------------- Date: Sun 05 Nov 2023 10:10:08 PM UTC By: G. Branden Robinson <gbranden> Input: $ cat does-tbl-preserve-font-selections.roff .ft 2 .nr p \n(.f .ft 3 .nr c \n(.f Font selections before tbl: previous=\np, current=\nc .ft 2 ?= \n(.f .ft .br before table, font is \n(.f .TS box; Lf(CR). This is a table. .TE after table, font is \n(.f .br .nr c \n(.f .ft .nr p \n(.f Font selections after tbl: previous=\np, current=\nc Output: $ nroff -t -Tascii EXPERIMENTS/does-tbl-preserve-font-selections.roff | cat -s troff:EXPERIMENTS/does-tbl-preserve-font-selections.roff:14: warning: cannot select font 'CR' troff:EXPERIMENTS/does-tbl-preserve-font-selections.roff:14: warning: cannot select font 'CR' Font selections before tbl: previous=2, current=3 2 ?= 2 before table, font is 3 +------------------+ | This is a table. | +------------------+ after table, font is 3 Font selections after tbl: previous=3, current=3 I expect GNU _tbl_ to put things back the way they were before the table region. For what it's worth, DWB and Heirloom Doctools _tbl_ don't, either. _______________________________________________________ Reply to this item at: <https://savannah.gnu.org/bugs/?64862> _______________________________________________ Message sent via Savannah https://savannah.gnu.org/