[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #64862] [tbl] clobbers value of previously selected font
From: |
G. Branden Robinson |
Subject: |
[bug #64862] [tbl] clobbers value of previously selected font |
Date: |
Sun, 5 Nov 2023 17:10:10 -0500 (EST) |
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/
- [bug #64862] [tbl] clobbers value of previously selected font,
G. Branden Robinson <=