Home | Docs | Forums | Lists | Bugs | Planet | Store | GMN | Get Gentoo!
Not eligible to see or edit group visibility for this bug.
View Bug Activity | Format For Printing | XML | Clone This Bug
The groff patch "groff-man-UTF-8.diff" inserts a trailing blank line into /usr/share/groff/site-tmac/man.local that causes "man -t" to output an initial blank page. Royally screws duplex printing. Patch to the patch attached. Reproducible: Always Steps to Reproduce: 1. 2. 3.
Created an attachment (id=15346) [details] patch to sys-apps/groff/files/groff-man-UTF-8.diff
What is the issue here ? Could you do a 'man -t man &> foo' and attach foo ?
Sure. When you run that command, then run your favorite PostScript viewer on foo, do you not see a blank page 1, followed by the real page 1? The issue is the blank line at the bottom of /usr/share/groff/site-tmac/man.local. Since it's not part of a macro, *roff sees it as part of the document and outputs a "blank" (actually contains a single newline) page 1. Also screws up the footer macro, as .TH hasn't been run yet: % zcat /usr/man/man1/pwd.1.gz | troff -b -ww -man-old > /dev/null /usr/share/groff/1.18.1/tmac/an-old.tmac:251: backtrace: trap-invoked macro `an- p-footer' /usr/share/groff/1.18.1/tmac/an-old.tmac:217: backtrace: trap-invoked macro `an-footer' /usr/share/groff/1.18.1/tmac/an-old.tmac:160: backtrace: macro `TH' <standard input>:2: warning: `an-extra2' not defined /usr/share/groff/1.18.1/tmac/an-old.tmac:251: backtrace: trap-invoked macro `an-p-footer' /usr/share/groff/1.18.1/tmac/an-old.tmac:217: backtrace: trap-invoked macro `an-footer' /usr/share/groff/1.18.1/tmac/an-old.tmac:160: backtrace: macro `TH' <standard input>:2: warning: `an-extra1' not defined Remove the blank line and the warnings and extra page go away.
Created an attachment (id=15397) [details] output of "man -t man > /tmp/groffbug" No stderr output.
Fixed in -r3, thanks.