From: Mattias EngdegÄrd Date: Thu, 16 Apr 2020 17:40:26 +0000 (+0200) Subject: Improve regexp in org-table-finish-edit-field X-Git-Tag: emacs-28.0.90~7565 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6a60701bba3d87f5d9a1730e18b6da827f41a062;p=emacs.git Improve regexp in org-table-finish-edit-field * lisp/org/org-table.el (org-table-finish-edit-field): Further improvement of regexp, as suggested by Paul Eggert. --- diff --git a/lisp/org/org-table.el b/lisp/org/org-table.el index 8927b1c2ed9..abba29952e6 100644 --- a/lisp/org/org-table.el +++ b/lisp/org/org-table.el @@ -2005,7 +2005,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\n]*" nil t) (replace-match " ")) (setq text (org-trim (buffer-string))) (set-window-configuration cw)