[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #65977] [troff] `device` request should work early as `\X` does
From: |
G. Branden Robinson |
Subject: |
[bug #65977] [troff] `device` request should work early as `\X` does |
Date: |
Fri, 19 Jul 2024 15:17:14 -0400 (EDT) |
Update of bug #65977 (group groff):
Status: In Progress => Fixed
Open/Closed: Open => Closed
Planned Release: None => 1.24.0
_______________________________________________________
Follow-up Comment #2:
commit 017779a9a78ae5890b792b89d3a27a2bbcc864c6
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date: Tue Jul 16 10:03:52 2024 -0500
[troff]: Fix Savannah #65977 (early `device` req).
* src/roff/troff/input.cpp (device_request): Honor a `device` request
even if it precedes any formatted output, as we do the `\X` escape
sequence.
Fixes <https://savannah.gnu.org/bugs/?65977>.
$ printf '.device\n'| ./build/test-groff -Zww
troff: warning: device control request expects arguments
$ printf '.device tty: foo my bar\n'| ./build/test-groff -Zww
x T ps
x res 72000 1 1
x init
p1
V12000
H72000
x font 5 TR
f5
s10000
V12000
H72000
md
DFd
x X tty: foo my bar
n12000 0
x trailer
V792000
x stop
$ printf '\\X@tty: foo my bar@\n'| ./build/test-groff -Zww
x T ps
x res 72000 1 1
x init
p1
V12000
H72000
x font 5 TR
f5
s10000
V12000
H72000
md
DFd
x X tty: foo my bar
n12000 0
x trailer
V792000
x stop
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65977>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature