Update of bug #65980 (group groff):
Category: General => Core
Status: None => Confirmed
Summary: emit (better) diagnostics on bad input files =>
[troff] emit diagnostic on unreadable input files
_______________________________________________________
Follow-up Comment #1:
I perceive two problems here.
1. What you reported. The formatter should throw a diagnostic regarding
operands it can't work with.
2. Use of preprocessors with empty inputs causes the formatter to produce
output that provokes complaints from output drivers.
Example:
$ echo . | tbl
.if !\n(.g .ab GNU tbl requires groff extensions; aborting
.do if !dTS .ds TS
.do if !dT& .ds T&
.do if !dTE .ds TE
.lf 1 -
.
$ echo . | tbl | nroff
grotty:<standard input>:(<standard input>):6: fatal error: 'V' command invalid
before first 'p' command
So what's the problem?
$ echo . | tbl | nroff -Z
x T utf8
x res 240 24 40
x init
x F -
x trailer
V2640
x stop
It looks the formatter is interpreting at least one of those requests as
productive of a node, and it probably shouldn't be. I'll branch this second
issue off into a new ticket.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?65980>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/
signature.asc
Description: PGP signature
