From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from lists.gentoo.org ([140.105.134.102] helo=robin.gentoo.org) by nuthatch.gentoo.org with esmtp (Exim 4.43) id 1EK76E-00085Y-EM for garchives@archives.gentoo.org; Tue, 27 Sep 2005 04:29:50 +0000 Received: from robin.gentoo.org (localhost [127.0.0.1]) by robin.gentoo.org (8.13.5/8.13.5) with SMTP id j8R4LQUJ009080; Tue, 27 Sep 2005 04:21:26 GMT Received: from xproxy.gmail.com (xproxy.gmail.com [66.249.82.204]) by robin.gentoo.org (8.13.5/8.13.5) with ESMTP id j8R4HOiU017598 for ; Tue, 27 Sep 2005 04:17:24 GMT Received: by xproxy.gmail.com with SMTP id s7so1391088wxc for ; Mon, 26 Sep 2005 21:24:22 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:disposition-notification-to:date:from:reply-to:user-agent:x-accept-language:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=iLBQ/Tq6/U2em7/v2ymR413h71wiC/SK15dLL15Tk9IYpM3QuSc61XKXazyE9Fqdnt7G0GorBVxRuUplcTJRoIZfmrvAFmag+eqQ4SF55hs3MLlT95pBXx3jcuArMPB4wKALfjP3+b5WZ1R5fk7reXnfkowZBnPHbJZl4pEwMbs= Received: by 10.70.113.16 with SMTP id l16mr2752755wxc; Mon, 26 Sep 2005 21:24:22 -0700 (PDT) Received: from ?192.168.0.102? ( [63.207.177.3]) by mx.gmail.com with ESMTP id i37sm5295512wxd.2005.09.26.21.24.21; Mon, 26 Sep 2005 21:24:21 -0700 (PDT) Message-ID: <4338C921.4020505@gmail.com> Date: Mon, 26 Sep 2005 21:22:57 -0700 From: gentuxx User-Agent: Mozilla Thunderbird 1.0.6 (X11/20050803) X-Accept-Language: en-us, en Precedence: bulk List-Post: List-Help: List-Unsubscribe: List-Subscribe: List-Id: Gentoo Linux mail X-BeenThere: gentoo-user@gentoo.org Reply-to: gentoo-user@lists.gentoo.org MIME-Version: 1.0 To: gentoo-user@lists.gentoo.org Subject: Re: [gentoo-user] Any 'sed' geniuses out there? References: <4338C064.3090207@gmail.com> <003301c5c316$b2e731c0$0a00a8c0@butthead> In-Reply-To: <003301c5c316$b2e731c0$0a00a8c0@butthead> X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Archives-Salt: d19b2626-96ce-4687-8d13-f6b00208b825 X-Archives-Hash: 6580c31b0c1439352cab03cd89abe413 -----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

,

, or
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