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

                 Summary: [troff] throw warning in "style" category when end
of sentence detected before end of text line
                   Group: GNU roff
               Submitter: gbranden
               Submitted: Sat 14 Mar 2026 02:15:27 PM UTC
                Category: Core
                Severity: 1 - Wish
              Item Group: Warning/Suspicious behaviour
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open
         Discussion Lock: Unlocked
         Planned Release: None


    _______________________________________________________

Follow-up Comments:


-------------------------------------------------------
Date: Sat 14 Mar 2026 02:15:27 PM UTC By: G. Branden Robinson <gbranden>
Almost four years ago,
[https://lists.gnu.org/archive/html/groff/2022-06/msg00052.html I wrote]:

> [...] the fundamental change is straightforward.  I can
> made the troff(1) command do it with a 1-line patch.
> 

> diff --git a/src/roff/troff/env.cpp b/src/roff/troff/env.cpp
> index d6a9e982d..d3f80a205 100644
> --- a/src/roff/troff/env.cpp
> +++ b/src/roff/troff/env.cpp
> @@ -472,6 +472,7 @@ void environment::space(hunits space_width, hunits
> sentence_space_width)
> && node_list_ends_sentence(p->next) == 1) {
> hunits xx = translate_space_to_dummy ? H0 : sentence_space_width;
> if (p->merge_space(xx, space_width, sentence_space_width)) {
> +      debug("end of sentence detected in input line");
> *tp += xx;
> return;
> }


> 
> This is not production-ready.  Wording for the diagnostic needs to be
> hammered on to make it clear that a within-input line sentence ending
> has been detected.  A warning category needs to have a name chosen and
> support written.  Documentation of this feature needs to be added.

I have a better idea now of how I want to phrase the warning diagnostic, and
the listed prerequisites are being met as I write.

Depends on bug #62776.







    _______________________________________________________

Reply to this item at:

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

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

Attachment: signature.asc
Description: PGP signature

Reply via email to