-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Dave Nebinger wrote:

>> I'm writing a sed script that will parse the *broken* output of
>> man2html. I say broken, because the output isn't W3C compliant (html
>> OR xhtml). I'd like to be able to modify it so that the final outcome
>> is XHTML 1.0 compliant. I'm running into a problem where the output
>> doesn't close the <p>, <dt>, or <dd> tags.
>
>
> Won't html tidy do this kind of thing for you?
>
> It would seem to be easier to reuse an existing tested tool rather
> than trying to roll your own...
>
>
Well, while I enjoy a good challenge (especially sed, awk, or perl),
htmltidy does the trick quite nicely.  It doesn't indent the way that
I do, but my first priority was making the output W3C compliant, and
htmltidy's output is that.

Thanks Dave!

- --
gentux
echo "hfouvyAdpy/ofu" | perl -pe 's/(.)/chr(ord($1)-1)/ge'

gentux's gpg fingerprint ==> 34CE 2E97 40C7 EF6E EC40  9795 2D81 924A
6996 0993
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)

iD8DBQFDOMkhLYGSSmmWCZMRAoqSAJ4nP7Vyb/x3/EjvC9O7MGWLpcWzygCgxQrV
kFsnMCN9cYemTJEh0ub+JSI=
=pUJg
-----END PGP SIGNATURE-----

-- 
gentoo-user@gentoo.org mailing list

Reply via email to