diff options
author | Le Wang <l26wang@gmail.com> | 2012-10-29 06:37:41 +0100 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-10-29 06:37:41 +0100 |
commit | d22e732d7a688622729fb2d4994cf95a94dd0598 (patch) | |
tree | 9c84014254dfe7412e5be3eedf28dea47da8a2cc | |
parent | d0dd2a53087a6c4bec6497852312df9f957f5caa (diff) | |
download | org-mode-d22e732d7a688622729fb2d4994cf95a94dd0598.tar.gz |
org-src.el (org-edit-src-exit): Fix editing source section with blank lines
* org-src.el (org-edit-src-exit): Fix editing source section
with blank lines.
TINYCHANGE
This bug was introduced by commit aba9e2b9.
-rw-r--r-- | lisp/org-src.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org-src.el b/lisp/org-src.el index b4d4c04..75db1d7 100644 --- a/lisp/org-src.el +++ b/lisp/org-src.el @@ -690,7 +690,7 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"." (goto-char beg) (when allow-write-back-p (delete-region beg (max beg (1- end))) - (unless (string-match "^[ \t]*$" code) + (unless (string-match "\\`[ \t]*\\'" code) (insert code) (delete-char 1)) (goto-char beg) |