summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2014-03-14 09:59:38 +0100
committerBastien Guerry <bzg@altern.org>2014-03-14 09:59:38 +0100
commit07347025ee204b76d372a5cd62a37d5a5feb0472 (patch)
tree59a0bd7ea9e0d31e9541d7013788d2d2aa14bead
parentc1d5a0ae0504ebeb0099bb18120525da4ccdf919 (diff)
parent49a9c2b2132cf22e30939bef6355b7aacf699f68 (diff)
downloadorg-mode-07347025ee204b76d372a5cd62a37d5a5feb0472.tar.gz
Merge branch 'maint'
-rw-r--r--lisp/org-src.el6
1 files changed, 2 insertions, 4 deletions
diff --git a/lisp/org-src.el b/lisp/org-src.el
index 4889bc1..f870b2c 100644
--- a/lisp/org-src.el
+++ b/lisp/org-src.el
@@ -737,10 +737,8 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"."
(unless (or single preserve-indentation (= total-nindent 0))
(setq indent (make-string total-nindent ?\ ))
(goto-char (point-min))
- (while (and (not (eobp)) (re-search-forward "^" nil t))
- (if (not (looking-at "$"))
- (replace-match indent)
- (forward-char 1))))
+ (while (re-search-forward "\\(^\\).+" nil t)
+ (replace-match indent nil nil nil 1)))
(if (org-bound-and-true-p org-edit-src-picture)
(setq total-nindent (+ total-nindent 2)))
(setq code (buffer-string))