diff --git a/lisp/org-table.el b/lisp/org-table.el index 7741a9701..1d34f22be 100644 --- a/lisp/org-table.el +++ b/lisp/org-table.el @@ -2063,7 +2063,7 @@ the table and kill the editing buffer." text) (goto-char (point-min)) (while (re-search-forward "^#.*\n?" nil t) (replace-match "")) - (while (re-search-forward "\\([ \t]*\n[ \t]*\\)+" nil t) + (while (re-search-forward "[ \t]*\\(?:\n[ \t]*\\)+" nil t) (replace-match " ")) (setq text (org-trim (buffer-string))) (set-window-configuration cw)