bugGNU roff - Bugs: bug #62051, [man] ultra-long paragraph tags...

 
 

bug #62051: [man] ultra-long paragraph tags produce adjustment warnings

Submitter:  G. Branden Robinson <gbranden>
Submitted:  Mon 14 Feb 2022 06:30:16 AM UTC
   
 
Category:  Macro package man Severity:  3 - Normal
Item Group:  Warning/Suspicious behaviour Status:  Fixed
Privacy:  Public Assigned to:  gbranden
Open/Closed:  Closed Planned Release:  1.23.0
* Mandatory Fields

Add a New Comment Rich Markup
   

Fri 15 Mar 2024 11:44:51 PM UTC, comment #3: 

This bug's fix had one unintended side effect: see bug #65462.

Dave <barx>
Group Member
Tue 15 Feb 2022 06:17:09 AM UTC, comment #2: 

Oh, I forgot to supply an exhibit of the bad behavior of groff 1.22.4.

Incidentally, I noticed this because the GNU Automake "distcheck" target does a build as part of your build, to test your distribution tar archive.  It does this in a remote subdirectory and supplies the "configure" script with directory names as long as your arm.  I was seeing warnings in the distcheck build that never appeared in a normal build, and, concerned, I looked into why.


$ nroff -man ./EXPERIMENTS/cannot-adjust.man
troff: ./EXPERIMENTS/cannot-adjust.man:5: warning [p 1, 0.7i, div 'an-div', 0.0i]: cannot adjust line
foo(1)                      General Commands Manual                     foo(1)



       /usr/local/share/groff/1.23.0/font/devps/download/usr/local/share/
       groff/1.23.0/font/devps/download
              lists fonts available for embedding within the PostScript  docu‐
              ment (or download to the device).



groff test suite                  2022‐02‐14                            foo(1)


G. Branden Robinson <gbranden>
Group administrator
Mon 14 Feb 2022 06:54:44 AM UTC, comment #1: 


commit 68001331e1149e952d7e66131562b187d3ea5c35
Author: G. Branden Robinson <g.branden.robinson@gmail.com>
Date:   Mon Feb 14 17:32:52 2022 +1100

    [man]: Don't attempt to adjust pargraph tag lines.

    * tmac/an.tmac (TP): Disable adjustment inside the diversion.
      (an-write-paragraph-tag): Restore adjustment outside of it.

    Fixes <https://savannah.gnu.org/bugs/?62051>.


G. Branden Robinson <gbranden>
Group administrator
Mon 14 Feb 2022 06:30:16 AM UTC, original submission:  

The formatter should not attempt to adjust paragraph tags.


$ cat EXPERIMENTS/cannot-adjust.man
.TH foo 1 2022-02-14 "groff test suite"
.TP
.I \
\%/usr/\:\%local/\:\%share/\:\%groff/\:\%1.23.0/\:\%font/\:\%devps/\:\%download\
\%/usr/\:\%local/\:\%share/\:\%groff/\:\%1.23.0/\:\%font/\:\%devps/\:\%download
lists fonts available for embedding within the PostScript document
(or download to the device).
$ ./build/test-groff -b -ww -Tutf8 -man EXPERIMENTS/cannot-adjust.man
foo(1)                      General Commands Manual                     foo(1)

       /usr/local/share/groff/1.23.0/font/devps/download/usr/local/share/
       groff/1.23.0/font/devps/download
              lists  fonts available for embedding within the PostScript docu‐
              ment (or download to the device).

groff test suite                  2022-02-14                            foo(1)


G. Branden Robinson <gbranden>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by barx (Posted a comment)
  • -email is unavailable- added by gbranden (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2022-02-14 gbranden StatusIn Progress Fixed
        Open/ClosedOpen Closed
        Planned ReleaseNone 1.23.0

    Back to the top

    Powered by Savane 3.13-bb6a.
    Corresponding source code