public inbox for gentoo-user@lists.gentoo.org
 help / color / mirror / Atom feed
From: gentuxx <gentuxx@gmail.com>
To: gentoo-user@lists.gentoo.org
Subject: Re: [gentoo-user] Any 'sed' geniuses out there?
Date: Mon, 26 Sep 2005 21:22:57 -0700	[thread overview]
Message-ID: <4338C921.4020505@gmail.com> (raw)
In-Reply-To: <003301c5c316$b2e731c0$0a00a8c0@butthead>

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



  parent reply	other threads:[~2005-09-27  4:29 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-09-27  3:45 [gentoo-user] Any 'sed' geniuses out there? gentuxx
2005-09-27  3:51 ` Dave Nebinger
2005-09-27  3:57   ` gentuxx
2005-09-27  4:22   ` gentuxx [this message]
2005-09-27  4:27     ` Dave Nebinger
2005-09-27  4:40       ` gentuxx
2005-09-27  8:24         ` Mariusz Pękala
2005-09-30 19:44         ` Billy Holmes

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4338C921.4020505@gmail.com \
    --to=gentuxx@gmail.com \
    --cc=gentoo-user@lists.gentoo.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox