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:
parent
0bb3aec267
commit
6a60701bba
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Reference in a new issue