FS#15479 - [groff] Converting man pages to postscript broken due to site.tmac bugs
Attached to Project:
Arch Linux
Opened by Lasse Collin (Larhzu) - Saturday, 11 July 2009, 09:10 GMT
Last edited by Paul Mattal (paul) - Sunday, 07 March 2010, 22:17 GMT
Opened by Lasse Collin (Larhzu) - Saturday, 11 July 2009, 09:10 GMT
Last edited by Paul Mattal (paul) - Sunday, 07 March 2010, 22:17 GMT
|
Details
Package version: groff-1.20.1-2-x86_64
Steps to reproduce: zcat /usr/share/man/man1/groff.1.gz | groff -man -Tps > foo.ps your_preferred_ps_viewer foo.ps foo.ps starts with an extra empty page, which shouldn't be there. Note also the warning printed on standard error: grops:<standard input>:6: X command without `ps:' tag ignored How to fix: site.tmac should have no empty lines, because even one empty line adds an extra empty page. The command to disable SGR is not recognized by grops (it's a command specific to grotty), and messes up the first page. site.tmac also lacks braces from the first .if request, so only the first .char request is used conditionally. I suggest enclosing the contents of site.tmac inside ".if n \{\ ... .\}", which executes the contents only when producing text output (this is how at least Slackware does it). A fixed site.tmac is attached. |
This task depends upon
Closed by Paul Mattal (paul)
Sunday, 07 March 2010, 22:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed per the suggestions here in groff 1.20.1-4.
Sunday, 07 March 2010, 22:17 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed per the suggestions here in groff 1.20.1-4.
I don't see a site.tmac file in groff (1.20.1-3-i686); are you recommending we add one with the contents above?
I'll do this, unless someone objects before I get to it.