On 24/10/2011 11:02, Michal Mazurek wrote:
On Sun, Oct 23, 2011 at 02:14:02PM +0200, Ingo Schwarze wrote:
I committed build system changes to install source manuals
and no longer install formatted manuals from 5.0 onwards.

This is nice, now I can do something like this in /etc/man.conf:
<  _build                .[1-9n]         /usr/bin/mandoc %s
_build                .[1-9n]         /usr/bin/mandoc -Owidth=`stty size | awk 
'{print $2 - 2}'` %s
to have the manpage fit my display. Especially usefull if I have split
screen in a tiling window manager, and the terminals are smaller than 80
columns.

(Looks like schwarze@ beat me to a reply...)

Neat! I never thought of that, though I often use -Owidth to embed manuals in emails without line-wrapping. Never really thought of using it elsewhere. mandoc may behave funny when squeezed for space, so as schwarze@ said, please mail me if you see aberrant behaviour.

An alternative (which I haven't tried) is to set the manpager to "lynx -stdin" and use "mandoc -Thtml" as an output mode. Then lynx can reflow the text for you. It's not possible to do links, however (I leave why not as an exercise for the reader).

Take care,

Kristaps

Reply via email to