summaryrefslogtreecommitdiff
path: root/lisp
diff options
context:
space:
mode:
Diffstat (limited to 'lisp')
-rw-r--r--lisp/textmodes/fill.el2
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/textmodes/fill.el b/lisp/textmodes/fill.el
index e54b25c2f84..ccfb7d849f7 100644
--- a/lisp/textmodes/fill.el
+++ b/lisp/textmodes/fill.el
@@ -282,7 +282,7 @@ MAIL-FLAG for a mail message, i. e. don't fill header lines."
(goto-char min)
(beginning-of-line)
(if mailp
- (while (looking-at "[^ \t\n]*:")
+ (while (or (looking-at "[ \t]*[^ \t\n]*:") (looking-at "[ \t]*$"))
(forward-line 1)))
(narrow-to-region (point) max)
;; Loop over paragraphs.