changeset 103839:65b0cbb5b077

(gnus-group-make-rss-group): Strip newlines and excessive whitespace from the default values of title and description.
author Katsumi Yamaoka <yamaoka@jpl.org>
date Fri, 10 Jul 2009 12:05:14 +0000
parents a7805f91abdd
children a9bb4a9d0ebd
files lisp/gnus/ChangeLog lisp/gnus/gnus-group.el
diffstat 2 files changed, 19 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/lisp/gnus/ChangeLog	Fri Jul 10 11:30:37 2009 +0000
+++ b/lisp/gnus/ChangeLog	Fri Jul 10 12:05:14 2009 +0000
@@ -1,3 +1,8 @@
+2009-07-10  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+	* gnus-group.el (gnus-group-make-rss-group): Strip newlines and
+	excessive whitespace from the default values of title and description.
+
 2009-06-22  Katsumi Yamaoka  <yamaoka@jpl.org>
 
 	* mm-decode.el (mm-dissect-buffer): Use message-fetch-field instead of
--- a/lisp/gnus/gnus-group.el	Fri Jul 10 11:30:37 2009 +0000
+++ b/lisp/gnus/gnus-group.el	Fri Jul 10 12:05:14 2009 +0000
@@ -3055,12 +3055,21 @@
 	(let* ((title (gnus-newsgroup-savable-name
 		       (read-from-minibuffer "Title: "
 					     (gnus-newsgroup-savable-name
-					      (or (cdr (assoc 'title
+					      (mapconcat
+					       'identity
+					       (split-string
+						(or (cdr (assoc 'title
+								feedinfo))
+						    ""))
+					       " ")))))
+	       (desc  (read-from-minibuffer "Description: "
+					    (mapconcat
+					     'identity
+					     (split-string
+					      (or (cdr (assoc 'description
 							      feedinfo))
-						  "")))))
-	       (desc  (read-from-minibuffer "Description: "
-					    (cdr (assoc 'description
-							feedinfo))))
+						  ""))
+					     " ")))
 	       (href (cdr (assoc 'href feedinfo)))
 	       (coding (gnus-group-name-charset '(nnrss "") title)))
 	  (when coding