]> git.eshelyaron.com Git - emacs.git/commitdiff
(gnus-group-make-rss-group): Strip newlines and excessive whitespace
authorKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 10 Jul 2009 12:05:14 +0000 (12:05 +0000)
committerKatsumi Yamaoka <yamaoka@jpl.org>
Fri, 10 Jul 2009 12:05:14 +0000 (12:05 +0000)
from the default values of title and description.

lisp/gnus/ChangeLog
lisp/gnus/gnus-group.el

index 514648aa153c48d67a2faea8e50527fcfad43d92..1d0f1002a7d18eb0d6599d98c090c4d4438488b5 100644 (file)
@@ -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
index fbf0cf0f107db63b7115821d37ae810a2ab97464..602ee31944a1cf17de86adc2b8fa65b71c77ab49 100644 (file)
@@ -3055,12 +3055,21 @@ If there is, use Gnus to create an nnrss group"
        (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