diff options
| author | Mattias EngdegÄrd | 2020-04-16 19:40:26 +0200 |
|---|---|---|
| committer | Mattias EngdegÄrd | 2020-04-16 19:53:10 +0200 |
| commit | 6a60701bba3d87f5d9a1730e18b6da827f41a062 (patch) | |
| tree | d5ed90d36ee7faefdb09ea602c89d7b7e409ef2b | |
| parent | 0bb3aec2675779d0e0aba12a60274aedea49086a (diff) | |
| download | emacs-6a60701bba3d87f5d9a1730e18b6da827f41a062.tar.gz emacs-6a60701bba3d87f5d9a1730e18b6da827f41a062.zip | |
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.
| -rw-r--r-- | lisp/org/org-table.el | 2 |
1 files changed, 1 insertions, 1 deletions
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." | |||
| 2005 | text) | 2005 | text) |
| 2006 | (goto-char (point-min)) | 2006 | (goto-char (point-min)) |
| 2007 | (while (re-search-forward "^#.*\n?" nil t) (replace-match "")) | 2007 | (while (re-search-forward "^#.*\n?" nil t) (replace-match "")) |
| 2008 | (while (re-search-forward "[ \t]*\\(?:\n[ \t]*\\)+" nil t) | 2008 | (while (re-search-forward "[ \t]*\n[ \t\n]*" nil t) |
| 2009 | (replace-match " ")) | 2009 | (replace-match " ")) |
| 2010 | (setq text (org-trim (buffer-string))) | 2010 | (setq text (org-trim (buffer-string))) |
| 2011 | (set-window-configuration cw) | 2011 | (set-window-configuration cw) |