emacs-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: html2text


From: Reiner Steib
Subject: Re: html2text
Date: Mon, 01 Nov 2004 12:55:45 +0100
User-agent: Gnus/5.11 (Gnus v5.11) Emacs/21.3.50 (gnu/linux)

On Sun, Oct 31 2004, Alfred M. Szmidt wrote:

> html2text is quite nice, but it doesn't strip all HTML files into
> something that is readable.  The following patch makes it strip some
> "newer" tags that have croped up.  Though, it still doesn't make
> things as nice as they could be, tables and comments are still left
> intact.
>
> I guess that a better way to do this is to convert all known tags to
> something nice, and then just strip all remaining tags that are left.

Would you like to work on this?

> diff -ur html2text.el html2text.el.new
> --- html2text.el      2004-10-31 19:23:06.000000000 +0100
> +++ html2text.el.new  2004-10-31 19:23:46.000000000 +0100
> @@ -75,8 +75,10 @@
>
>  (defvar html2text-format-tag-list
>    '(("b"       . html2text-clean-bold)
> +    ("strong"     . html2text-clean-bold)
>      ("u"       . html2text-clean-underline)
>      ("i"       . html2text-clean-italic)
> +    ("em"         . html2text-clean-italic)
>      ("blockquote" . html2text-clean-blockquote)
>      ("a"          . html2text-clean-anchor)
>      ("ul"         . html2text-clean-ul)

Committed in Gnus repository (will be synced to Emacs within a couple
of days).

Bye, Reiner.
-- 
       ,,,
      (o o)
---ooO-(_)-Ooo---  |  PGP key available  |  http://rsteib.home.pages.de/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]