From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63893 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general,gmane.emacs.gnus.semi.japanese Subject: html2text bug (was Re: mm-text-html-renderer) Date: Thu, 26 Oct 2006 20:23:08 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161862247 11929 80.91.229.2 (26 Oct 2006 11:30:47 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2006 11:30:47 +0000 (UTC) Cc: semi-gnus-ja@meadowy.org Original-X-From: ding-owner+m12420@lists.math.uh.edu Thu Oct 26 13:30:43 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gd3RU-0004aX-CN for ding-account@gmane.org; Thu, 26 Oct 2006 13:30:36 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Gd3RP-00079H-00; Thu, 26 Oct 2006 06:30:31 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Gd3NN-00079B-00 for ding@lists.math.uh.edu; Thu, 26 Oct 2006 06:26:21 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1Gd3NJ-0001cx-7l for ding@lists.math.uh.edu; Thu, 26 Oct 2006 06:26:21 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Gd3NC-000616-00 for ; Thu, 26 Oct 2006 13:26:10 +0200 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1Gd3Mw-0003oC-E8 for ding@gnus.org; Thu, 26 Oct 2006 13:25:54 +0200 Original-Received: from minsk.hostforweb.net ([66.225.201.21]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Oct 2006 13:25:54 +0200 Original-Received: from yamaoka by minsk.hostforweb.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 26 Oct 2006 13:25:54 +0200 X-Injected-Via-Gmane: http://gmane.org/ Original-To: ding@gnus.org Original-Lines: 22 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: minsk.hostforweb.net X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (usg-unix-v) Cancel-Lock: sha1:zUvzxyOV9LO2vnJM6Ue0MIBHrBg= X-Spam-Score: -2.6 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63893 gmane.emacs.gnus.semi.japanese:13370 Archived-At: Hi, YAGI Tatsuya reported two bugs concerned with html2text.el. 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")) The other is that the `html2text' command causes infloop if tag is not closed with in an html source. You can reproduce this by putting only the following line in an empty buffer and performing the `html2text' command: It is due to the `html2text-format-tags' function. Does anyone have time to fix them? Thanks in advance. From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63894 Path: news.gmane.org!not-for-mail From: Reiner Steib Newsgroups: gmane.emacs.gnus.general,gmane.emacs.gnus.semi.japanese Subject: Re: html2text bug Date: Thu, 26 Oct 2006 16:04:55 +0200 Organization: Dept. of Theoretical Physics, University of Ulm Message-ID: References: Reply-To: Reiner Steib NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1161871757 20749 80.91.229.2 (26 Oct 2006 14:09:17 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Thu, 26 Oct 2006 14:09:17 +0000 (UTC) Cc: semi-gnus-ja@meadowy.org Original-X-From: ding-owner+m12421@lists.math.uh.edu Thu Oct 26 16:09:05 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1Gd5ua-0007Pk-Md for ding-account@gmane.org; Thu, 26 Oct 2006 16:08:50 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1Gd5uV-0007MW-00; Thu, 26 Oct 2006 09:08:43 -0500 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1Gd5r3-0007MR-00 for ding@lists.math.uh.edu; Thu, 26 Oct 2006 09:05:09 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1Gd5qx-0002XS-K9 for ding@lists.math.uh.edu; Thu, 26 Oct 2006 09:05:09 -0500 Original-Received: from mail.uni-ulm.de ([134.60.1.1]) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1Gd5qu-00087S-00 for ; Thu, 26 Oct 2006 16:05:01 +0200 Original-Received: from bridgekeeper.physik.uni-ulm.de (bridgekeeper.physik.uni-ulm.de [134.60.10.123]) by mail.uni-ulm.de (8.13.8/8.13.8) with ESMTP id k9QE4u4J002410; Thu, 26 Oct 2006 16:04:56 +0200 (MEST) Original-Received: by bridgekeeper.physik.uni-ulm.de (Postfix, from userid 170) id 8003B1217A; Thu, 26 Oct 2006 16:04:55 +0200 (CEST) Original-To: ding@gnus.org User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.50 (gnu/linux) X-Face: 3Phac&+dw=IZHjhua]bp}LH<*p{qzj8u+ The other is that the `html2text' command causes infloop if > tag is not closed with in an html source. You can > reproduce this by putting only the following line in an empty > buffer and performing the `html2text' command: > > > > It is due to the `html2text-format-tags' function. Does anyone > have time to fix them? > > Thanks in advance. Bye, Reiner. -- ,,, (o o) ---ooO-(_)-Ooo--- | PGP key available | http://rsteib.home.pages.de/ From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/63918 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general,gmane.emacs.gnus.semi.japanese Subject: Re: html2text bug Date: Mon, 30 Oct 2006 21:12:03 +0900 Organization: Emacsen advocacy group Message-ID: References: NNTP-Posting-Host: main.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1162210425 25540 80.91.229.2 (30 Oct 2006 12:13:45 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Mon, 30 Oct 2006 12:13:45 +0000 (UTC) Cc: semi-gnus-ja@meadowy.org Original-X-From: ding-owner+m12445@lists.math.uh.edu Mon Oct 30 13:13:38 2006 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by ciao.gmane.org with esmtp (Exim 4.43) id 1GeW14-0002Ih-4T for ding-account@gmane.org; Mon, 30 Oct 2006 13:13:23 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu ident=lists) by malifon.math.uh.edu with smtp (Exim 3.20 #1) id 1GeW0a-0005nu-00; Mon, 30 Oct 2006 06:12:52 -0600 Original-Received: from mx2.math.uh.edu ([129.7.128.33]) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 1GeW03-0005np-00 for ding@lists.math.uh.edu; Mon, 30 Oct 2006 06:12:19 -0600 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx2.math.uh.edu with esmtp (Exim 4.63) (envelope-from ) id 1GeVzx-0001U5-5Z for ding@lists.math.uh.edu; Mon, 30 Oct 2006 06:12:19 -0600 Original-Received: from unknown.scnet.net ([216.246.45.90] helo=orlando.hostforweb.net) by quimby.gnus.org with esmtp (Exim 3.35 #1 (Debian)) id 1GeVzw-0000NP-00 for ; Mon, 30 Oct 2006 13:12:12 +0100 Original-Received: from [216.246.45.90] (helo=mail.jpl.org) by orlando.hostforweb.net with esmtpa (Exim 4.52) id 1GeW0E-0002T2-Us; Mon, 30 Oct 2006 06:12:31 -0600 Original-To: ding@gnus.org X-Hashcash: 1:20:061030:ding@gnus.org::ECv5aADkIl7CCbLq:00003e2Y X-Hashcash: 1:20:061030:semi-gnus-ja@meadowy.org::9sbqYHFcCOjLcenG:0000000000000000000000000000000000000CTzW X-Face: #kKnN,xUnmKia.'[pp`;Omh}odZK)?7wQSl"4o04=EixTF+V[""w~iNbM9ZL+.b*_CxUmFk B#Fu[*?MZZH@IkN:!"\w%I_zt>[$nm7nQosZ<3eu;B:$Q_:p!',P.c0-_Cy[dz4oIpw0ESA^D*1Lw= L&i*6&( User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.90 (gnu/linux) Cancel-Lock: sha1:HA55iv7srWjCU6IqiQLfK6jFH0E= X-AntiAbuse: This header was added to track abuse, please include it with any abuse report X-AntiAbuse: Primary Hostname - orlando.hostforweb.net X-AntiAbuse: Original Domain - gnus.org X-AntiAbuse: Originator/Caller UID/GID - [0 0] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.5 (--) Precedence: bulk Original-Sender: ding-owner@lists.math.uh.edu Xref: news.gmane.org gmane.emacs.gnus.general:63918 gmane.emacs.gnus.semi.japanese:13372 Archived-At: >>>>> In >>>>> 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 >> tag is not closed with 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 and next 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: >> >> >> >> It is due to the `html2text-format-tags' function. I did a minimal fix in the trunk and the v5-10 branch. Regards,