From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: David Hansen Newsgroups: gmane.emacs.help,gmane.emacs.w3m Subject: Re: getting rid of ^M displayed by emacs-w3m Date: Sun, 25 Mar 2007 01:50:44 +0100 Organization: disorganized Message-ID: <87mz2216zf.fsf@localhorst.mine.nu> References: <87r6re1gur.fsf@localhorst.mine.nu> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1174784024 5160 80.91.229.12 (25 Mar 2007 00:53:44 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Sun, 25 Mar 2007 00:53:44 +0000 (UTC) Cc: emacs-w3m@namazu.org To: help-gnu-emacs@gnu.org Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Sun Mar 25 01:53:43 2007 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1HVGzO-0004fD-QM for geh-help-gnu-emacs@m.gmane.org; Sun, 25 Mar 2007 01:53:43 +0100 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVH1S-0000lw-U4 for geh-help-gnu-emacs@m.gmane.org; Sat, 24 Mar 2007 19:55:50 -0500 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HVH1F-0000lr-6a for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 20:55:37 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HVH1D-0000ld-PO for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 20:55:36 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HVH1D-0000la-KU for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 19:55:35 -0500 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1HVGz8-0001q5-IJ for help-gnu-emacs@gnu.org; Sat, 24 Mar 2007 20:53:26 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1HVGz3-00087d-5A for help-gnu-emacs@gnu.org; Sun, 25 Mar 2007 01:53:21 +0100 Original-Received: from e178035008.adsl.alicedsl.de ([85.178.35.8]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Mar 2007 01:53:21 +0100 Original-Received: from david.hansen by e178035008.adsl.alicedsl.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sun, 25 Mar 2007 01:53:21 +0100 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: help-gnu-emacs@gnu.org Original-Lines: 39 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: e178035008.adsl.alicedsl.de Mail-Copies-To: nobody User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.95 (gnu/linux) Cancel-Lock: sha1:nSEuSzLRBTpjEy/17IXrJFXWZM4= X-detected-kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.help:42169 gmane.emacs.w3m:6620 Archived-At: X-Post to the emacs-w3m mailing list. [ summary for the w3m devels: some html page includes the string " " and emacs-w3m inserts a raw carriage return into the buffer, which of course looks kind off ugly ] On Sun, 25 Mar 2007 10:58:37 +1100 Alexey Pustyntsev wrote: > David Hansen writes: > >> To me this looks like the page explicitly asked to display a >> carriage return. So I think what emacs w3m does here is reasonable. >> But maybe this " " is some html trick I don't know... > > Thanks David. > > What I don't understand here is why w3m doesn't display > ^M (or, perhaps, something else) in xterm when the page explicitly > asks to do so. Some of the rendering is done by w3m and some within emacs. The translation of entities to characters is one of the things that happens in emacs. >> How do you think should emacs-w3m render a carriage return? > > I consider ^M to be garbage in the rendered html so it should not be > displayed by default unless, of course, specifically requested. If the html source includes the entity " " it explicitly requested the display of a carriage return (whatever this means), at least in my opinion. But again, this might be some html "feature" I don't know about. IMHO the right thing to do here is to read up in the HTML specs how whitespaces encoded with html entities should be treated. David