bugDatabase-driven manual pager suite - Bugs: bug #23083, $MANWIDTH leads to ugly warnings.

 
 

bug #23083: $MANWIDTH leads to ugly warnings.

Submitter:  Bryce Nesbitt <brycenesbitt>
Submitted:  Mon 28 Apr 2008 01:20:58 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Ready For Test
Privacy:  Public Assigned to:  cjwatson
Open/Closed:  Open
* Mandatory Fields

Add a New Comment Rich Markup
   

Mon 28 Apr 2008 05:54:07 PM UTC, comment #2: 

Sure, I think it's fixed enough.  Though keeping warnings at output time seems a bit too late, when the original roff processing could warn when a document has an unreasonably small minimum wrap.

Bryce Nesbitt <brycenesbitt>
Mon 28 Apr 2008 08:45:45 AM UTC, comment #1: 

With man-db 2.5.0 or newer (I recommend 2.5.1, as there was a mistake in this change in 2.5.0), those messages won't disrupt normal pager output any more. Is this enough for you to consider this bug fixed? From docs/NEWS:

        o man now discards stderr from formatting subprocesses when
          outputting to a pager, to avoid visual corruption from any error
          messages.

You can suppress the warnings entirely (in 2.5.1 or newer) by setting MANROFFOPT=-Wbreak. I'm unsure about whether this should be the default; they do represent real infelicities in groff's output and it seems somewhat reasonable for lint-type tools to be able to warn about them (at more comfortable page widths) in case there are ways for the page to be rewritten to avoid such problems.

Colin Watson <cjwatson>
Group administrator
Mon 28 Apr 2008 01:20:58 AM UTC, original submission:  

When a line can't wrap, I get a series of ugly warning messages that disrupt use of man.  I encountered this with reasonably wide terminal, but to see it just set something narrow like:

shell> MANWIDTH=20 man man       

/usr/share/man/man1/man.1.gz:714: warning [p 34, 4.3i]: cannot adjust line
/usr/share/man/man1/man.1.gz:714: warning [p 34, 4.5i]: can't break line
/usr/share/man/man1/man.1.gz:716: warning [p 34, 4.8i, div `an-div', 0.0i]: cannot adjust line
...

The warnings don't help much, could they be suppressed?

Bryce Nesbitt <brycenesbitt>

 

(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 cjwatson (Posted a comment)
  • -email is unavailable- added by brycenesbitt (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 2 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2008-04-28 cjwatson StatusNone Ready For Test
        Assigned toNone cjwatson

    Back to the top

    Powered by Savane 3.13-f8d8.
    Corresponding source code