aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMattias EngdegÄrd2020-04-16 19:40:26 +0200
committerMattias EngdegÄrd2020-04-16 19:53:10 +0200
commit6a60701bba3d87f5d9a1730e18b6da827f41a062 (patch)
treed5ed90d36ee7faefdb09ea602c89d7b7e409ef2b
parent0bb3aec2675779d0e0aba12a60274aedea49086a (diff)
downloademacs-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.el2
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)