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.
This commit is contained in:
Mattias Engdegård 2020-04-16 19:40:26 +02:00
parent 0bb3aec267
commit 6a60701bba

View file

@ -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)