From 6a60701bba3d87f5d9a1730e18b6da827f41a062 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Mattias=20Engdeg=C3=A5rd?= Date: Thu, 16 Apr 2020 19:40:26 +0200 Subject: [PATCH] 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. --- lisp/org/org-table.el | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.39.2