Follow-up Comment #10, bug #57510 (project groff):
Aha! Thanks, Ingo. I was thinking only of command-line options. An
environment variable did not occur to me.
And sure enough, because of the way man-db's man calls nroff, we _need_ to add
support for -P to it for things to work.
$ MANROFFOPT=-P-i man ls
[behold unhelpful blank screen with "less" telling me I'm on document ? of ?]
man: command exited with status 1: (cd /usr/share/man &&
/usr/lib/man-db/zsoelim) | (cd /usr/share/man && /usr/lib/man-db/manconv -f
UTF-8:ISO-8859-1 -t UTF-8//IGNORE) | (cd /usr/share/man && preconv -e UTF-8) |
(cd /usr/share/man && tbl) | (cd /usr/share/man && nroff -mandoc -rLL=143n
-rLT=143n -P-i -Tutf8)
And thank you for read-teaming my clearly undercooked proposal.
I think I will leave -c and -h alone and implement a dry-run/debug flag for
nroff (name TBD), wherein it just prints the groff command it has constructed.
That will be easier to regression-test and more to the point.
_______________________________________________________
Reply to this item at:
<https://savannah.gnu.org/bugs/?57510>
_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/