Re: html2text bug

Katsumi Yamaoka <[email protected]> Mon, 30 Oct 2006 21:12:03 +0900
Newsgroups gmane.emacs.gnus.general,gmane.emacs.gnus.semi.japanese
Organization Emacsen advocacy group
Message-ID <[email protected]>
>>>>> In <[email protected]>
>>>>>	Reiner Steib wrote:

> On Thu, Oct 26 2006, Katsumi Yamaoka wrote:

>> One is that the `html2text' command cannot be called
>> interactively because mm-view.el doesn't set the interactive
>> flag in the autoload form:
>>
>> (eval-and-compile
>> [...]
>>   (autoload 'html2text "html2text"))

> I've fixed this one in trunk and v5-10, but not the second bug:

Thanks.

>> The other is that the `html2text' command causes infloop if
>> <a ...> tag is not closed with </a> in an html source.

The infloop only happens with last open tag in an html source.
It is serious, but what is more serious is the case where an
open tag exists in the middle of a source.  In that case,
anything between <a ...> and next <a ...> disappears.  It is
hard to improve html2text so that it works like w3m, though.

>> You can reproduce this by putting only the following line in
>> an empty buffer and performing the `html2text' command:
>>
>> <a href="http://example.com">
>>
>> It is due to the `html2text-format-tags' function.

I did a minimal fix in the trunk and the v5-10 branch.

Regards,