Browse Source

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
Mattias Engdegård 4 năm trước cách đây
mục cha
commit
37c916d90c
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  1. 1 1
      lisp/org-table.el

+ 1 - 1
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)