all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Reiner Steib <reinersteib+gmane@imap.cc>
Cc: emacs-devel@gnu.org
Subject: Re: html2text
Date: Mon, 01 Nov 2004 12:55:45 +0100	[thread overview]
Message-ID: <v97jp5zsu6.fsf@marauder.physik.uni-ulm.de> (raw)
In-Reply-To: <1099247139.071920.12084.nullmailer@Update.UU.SE> (Alfred M. Szmidt's message of "Sun, 31 Oct 2004 19:25:39 +0100")

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	other threads:[~2004-11-01 11:55 UTC|newest]

Thread overview: 11+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-10-31 18:25 html2text Alfred M. Szmidt
2004-11-01 11:55 ` Reiner Steib [this message]
2004-11-01 19:21   ` html2text Alfred M. Szmidt
2004-11-02  4:46   ` html2text Katsumi Yamaoka
2004-11-02  9:22     ` html2text Reiner Steib
2004-11-02 11:59       ` html2text Katsumi Yamaoka
2004-11-02 14:12         ` html2text Reiner Steib
     [not found] ` <mzxv9dyj.fsf@blue.sea.net>
2004-11-08 15:51   ` html2text Reiner Steib
2004-11-08 18:02     ` html2text David Kastrup
2004-11-09 22:44     ` html2text Reiner Steib
2004-11-15  8:31     ` html2text Jari Aalto

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=v97jp5zsu6.fsf@marauder.physik.uni-ulm.de \
    --to=reinersteib+gmane@imap.cc \
    --cc=Reiner.Steib@gmx.de \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.