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

 
 

bug #23083: $MANWIDTH leads to ugly warnings.

Submitted by:  Bryce Nesbitt <brycenesbitt>
Submitted on:  Mon 28 Apr 2008 01:20:58 AM UTC  
 
Category: NoneSeverity: 3 - Normal
Item Group: NoneStatus: Ready For Test
Privacy: PublicAssigned to: Colin Watson <cjwatson>
Open/Closed: Open

Add a New Comment (Rich MarkupRich Markup):
   

You are not logged in

Please log in, so followups can be emailed to you.

 

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>
Project AdministratorIn charge of this item.
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 File(s):
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -unavailable- added by cjwatson (Posted a comment)
  • -unavailable- added by brycenesbitt (Submitted the item)
  •  

    Do you think this task is very important?
    If so, you can click here to add your encouragement to it.
    This task has 0 encouragements so far.

    Only logged-in users can vote.

     

    Please enter the title of George Orwell's famous dystopian book (it's a date):

     

     

    Follow 2 latest changes.

    Date Changed By Updated Field Previous Value => Replaced By
    Mon 28 Apr 2008 08:46:07 AM UTCcjwatsonStatusNone=>Ready For Test
      Assigned toNone=>cjwatson

    Back to the top


    Powered by Savane 3.1-cleanup