Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 12 Jan 2013 20:59:40 -0500
From:      Fbsd8 <fbsd8@a1poweruser.com>
To:        Polytropon <freebsd@edvax.de>
Cc:        FreeBSD questions <questions@freebsd.org>
Subject:   Re: manpage -> html
Message-ID:  <50F2150C.20209@a1poweruser.com>
In-Reply-To: <20130113021454.e1128036.freebsd@edvax.de>
References:  <50F1FECA.4090801@a1poweruser.com> <CAOgwaMt32eHSqi3tEHr5Mkc=0TkSYuU1%2BGw7BSDVJiUB_kKVUg@mail.gmail.com> <50F20536.3020009@a1poweruser.com> <20130113021454.e1128036.freebsd@edvax.de>

next in thread | previous in thread | raw e-mail | index | archive | help
Polytropon wrote:
> On Sat, 12 Jan 2013 19:52:06 -0500, Fbsd8 wrote:
>> OK let me be more specific.
>> Using just commands that are in the base system.
>> IE; come with the 9.1 system
> 
> Very well:
> 
> zcat `man -w ls` | groff -Thtml -dpaper=a4 -P-pa4 > ls.html
> 
> zcat `man -w ls` | groff -Thtml > ls.html
> 
> However, the output looks a bit strange here (tested with lynx
> and Opera), so maybe some additional options are required. I've
> just derived this from my man2pdf script and read "man groff"
> for the -T parameter.
> 
> 

       zcat `man -w ls` | groff -T html > ls.html

That kind of worked. It did create html code but it dropped all the 
indentations and blank lines. .Pp commands in the man page source.



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?50F2150C.20209>