浏览代码

Merge branch 'maint'

Bastien Guerry 11 年之前
父节点
当前提交
07347025ee
共有 1 个文件被更改,包括 2 次插入4 次删除
  1. 2 4
      lisp/org-src.el

+ 2 - 4
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))