From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/68688 Path: news.gmane.org!not-for-mail From: Katsumi Yamaoka Newsgroups: gmane.emacs.gnus.general Subject: Re: its a multiline feed title Date: Fri, 10 Jul 2009 09:47:49 +0900 Organization: Emacsen advocacy group Message-ID: References: <87tz1lphj5.fsf@jidanni.org> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1247186959 25093 80.91.229.12 (10 Jul 2009 00:49:19 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Fri, 10 Jul 2009 00:49:19 +0000 (UTC) To: ding@gnus.org Original-X-From: ding-owner+M17115@lists.math.uh.edu Fri Jul 10 02:49:12 2009 Return-path: Envelope-to: ding-account@gmane.org Original-Received: from util0.math.uh.edu ([129.7.128.18]) by lo.gmane.org with esmtp (Exim 4.50) id 1MP4IZ-0006N8-NK for ding-account@gmane.org; Fri, 10 Jul 2009 02:49:12 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.math.uh.edu) by util0.math.uh.edu with smtp (Exim 4.63) (envelope-from ) id 1MP4I0-0001VY-Cp; Thu, 09 Jul 2009 19:48:36 -0500 Original-Received: from mx1.math.uh.edu ([129.7.128.32]) by util0.math.uh.edu with esmtps (TLSv1:AES256-SHA:256) (Exim 4.63) (envelope-from ) id 1MP4Hx-0001VE-Ft for ding@lists.math.uh.edu; Thu, 09 Jul 2009 19:48:33 -0500 Original-Received: from quimby.gnus.org ([80.91.231.51]) by mx1.math.uh.edu with esmtp (Exim 4.69) (envelope-from ) id 1MP4Hv-0004dB-Pc for ding@lists.math.uh.edu; Thu, 09 Jul 2009 19:48:33 -0500 Original-Received: from orlando.hostforweb.net ([216.246.45.90]) by quimby.gnus.org with esmtp (Exim 3.36 #1 (Debian)) id 1MP4IS-0006UF-00 for ; Fri, 10 Jul 2009 02:49:04 +0200 Original-Received: from localhost ([127.0.0.1]:40383) by orlando.hostforweb.net with esmtpa (Exim 4.69) (envelope-from ) id 1MP4HK-0001sr-E3 for ding@gnus.org; Thu, 09 Jul 2009 19:47:55 -0500 X-Hashcash: 1:20:090710:ding@gnus.org::lVs9y+3FfELrfD1R:00002FGA 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.110011 (No Gnus v0.11) Emacs/23.1.50 (gnu/linux) Cancel-Lock: sha1:fTJULlZJrdpUOlCb3VvXIPXjenQ= 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 - [47 12] / [47 12] X-AntiAbuse: Sender Address Domain - jpl.org X-Source: X-Source-Args: X-Source-Dir: X-Spam-Score: -2.6 (--) List-ID: Precedence: bulk Xref: news.gmane.org gmane.emacs.gnus.general:68688 Archived-At: >>>>> jidanni@jidanni.org wrote: > If one does G R > URL to Search for RSS: http://www.wretch.cc/album/album_rss.php?id=e0456789j > and blindly says RET to the two questions gnus then asks, > Title: > e0456789jAlbum > Description: > e0456789jAlbum > without trimming them to one line, > one is then in for a world of headaches in the *Group* buffer. That's serious, I think, and should be fixed. Could someone find any harm with the following patch? This strips leading and trailing whitespace (including newlines), and converts every whitespace between words into a single space. (I believe `split-string' doesn't return ""s because of no second arg. Am I right?) > P.S., that feed has problems anyway, else one could find showstopper > http://www.wretch.cc/album/show.php?i=e0456789j&b=23&f=1100870981&p=6 --8<---------------cut here---------------start------------->8--- --- gnus-group.el~ 2009-01-22 08:09:02 +0000 +++ gnus-group.el 2009-07-10 00:46:14 +0000 @@ -3055,12 +3055,21 @@ (let* ((title (gnus-newsgroup-savable-name (read-from-minibuffer "Title: " (gnus-newsgroup-savable-name - (or (cdr (assoc 'title - feedinfo)) - ""))))) + (mapconcat + 'identity + (split-string + (or (cdr (assoc 'title + feedinfo)) + "")) + " "))))) (desc (read-from-minibuffer "Description: " - (cdr (assoc 'description - feedinfo)))) + (mapconcat + 'identity + (split-string + (or (cdr (assoc 'description + feedinfo)) + "")) + " "))) (href (cdr (assoc 'href feedinfo))) (coding (gnus-group-name-charset '(nnrss "") title))) (when coding --8<---------------cut here---------------end--------------->8---