URL:
  <https://savannah.gnu.org/bugs/?66977>

                 Summary: [troff]: unfilled llines should provoke warnings if
overset
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Wed 02 Apr 2025 10:47:23 AM UTC
                Category: Core
                Severity: 1 - Wish
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Any
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Wed 02 Apr 2025 10:47:23 AM UTC By: G. Branden Robinson <gbranden>
This ticket has to do with alignment, not adjustment.

An overset left-aligned line, even when unadjusted, provokes a warning in
category "break", and has for a long time.


$ printf '.na\n.ll 2n\nABC\n' | ~/groff-HEAD/bin/groff -zww
troff:<standard input>:3: warning [page 1, 0.0i]: cannot break line
$ printf '.na\n.ll 2n\nABC\n' | ~/groff-1.23.0/bin/groff -zww
troff:<standard input>:3: warning [p 1, 0.0i]: cannot break line
$ printf '.na\n.ll 2n\nABC\n' | ~/groff-1.22.3/bin/groff -zww
<standard input>:3: warning [p 1, 0.0i]: can't break line


But when we turn off filling (as `nf` does, and as `ce`, and `rj` implicitly
do), we can overset without warning.


$ printf '.nf\n.ll 2n\nABC\n' | ~/groff-1.22.3/bin/groff -zww 2>&1 | grep . ||
echo NO OUTPUT
NO OUTPUT
$ printf '.ce 1\n.ll 2n\nABC\n' | ~/groff-1.22.3/bin/groff -zww 2>&1 | grep .
|| echo NO OUTPUT
NO OUTPUT
$ printf '.rj 1\n.ll 2n\nABC\n' | ~/groff-1.22.3/bin/groff -zww 2>&1 | grep .
|| echo NO OUTPUT
NO OUTPUT


The (lack of) output from _groff_ master is the same.







    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?66977>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/

Attachment: signature.asc
Description: PGP signature

Reply via email to