mirror of
https://git.savannah.gnu.org/git/emacs/org-mode.git
synced 2024-09-29 20:37:51 +00:00
Backport commit 905c0a13f from Emacs
* lisp/org-table.el (org-table-finish-edit-field): Avoid wrapped subsumption in repeated sequences. Fix bugs, inefficiencies and bad style in regexps 905c0a13f7929298cb36151f46dbef03f7bdcbe4 Mattias Engdegård Thu Apr 16 12:14:38 2020 +0200
This commit is contained in:
parent
b359de549e
commit
37c916d90c
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue