Function: article-remove-leading-whitespace
article-remove-leading-whitespace is an interactive and byte-compiled
function defined in gnus-art.el.gz.
Signature
(article-remove-leading-whitespace)
Documentation
Remove excessive whitespace from all headers.
Key Bindings
Source Code
;; Defined in /usr/src/emacs/lisp/gnus/gnus-art.el.gz
;; (defun article-show-all ()
;; "Show all hidden text in the article buffer."
;; (interactive)
;; (save-excursion
;; (let ((inhibit-read-only t))
;; (gnus-article-unhide-text (point-min) (point-max)))))
(defun article-remove-leading-whitespace ()
"Remove excessive whitespace from all headers."
(interactive nil gnus-article-mode)
(save-excursion
(save-restriction
(let ((inhibit-read-only t))
(article-narrow-to-head)
(goto-char (point-min))
(while (re-search-forward "^[^ :]+: \\([ \t]+\\)" nil t)
(delete-region (match-beginning 1) (match-end 1)))))))