(gnus-parse-simple-format): Remove trailing whitespace.
authorTeodor Zlatanov <tzz@lifelogs.com>
Fri, 29 Aug 2008 13:51:13 +0000 (13:51 +0000)
committerTeodor Zlatanov <tzz@lifelogs.com>
Fri, 29 Aug 2008 13:51:13 +0000 (13:51 +0000)
lisp/ChangeLog
lisp/gnus-spec.el

index a52f2c7..c392e56 100644 (file)
@@ -1,3 +1,7 @@
+2008-08-29  Katsumi Yamaoka  <yamaoka@jpl.org>
+
+       * gnus-spec.el (gnus-parse-simple-format): Remove trailing whitespace.
+
 2008-08-21  Teodor Zlatanov  <tzz@lifelogs.com>
 
        * gnus-registry.el (gnus-registry-max-track-groups): New variable to
index 95c6ea1..40a63f8 100644 (file)
@@ -709,7 +709,15 @@ are supported for %s."
        (when result
          (if dontinsert
              result
-           (cons 'insert result)))
+           `(progn
+              (insert ,@result)
+              (if (bolp)
+                  ;; remove trailing whitespaces from the line
+                  (progn
+                    (end-of-line 0)
+                    (skip-chars-backward " ")
+                    (delete-region (point) (point-at-eol))
+                    (forward-line 1))))))
       (cond ((stringp result)
             result)
            ((consp result)