forked from mirrors/org-mode
org-src.el (org-edit-src-exit): Don't add indentation on empty lines
* org-src.el (org-edit-src-exit): Don't add indentation on empty lines. TINYCHANGE
This commit is contained in:
parent
f0e5683a12
commit
9323857411
|
@ -737,8 +737,10 @@ with \",*\", \",#+\", \",,*\" and \",,#+\"."
|
|||
(unless (or single preserve-indentation (= total-nindent 0))
|
||||
(setq indent (make-string total-nindent ?\ ))
|
||||
(goto-char (point-min))
|
||||
(while (re-search-forward "^" nil t)
|
||||
(replace-match indent)))
|
||||
(while (re-search-forward "^" nil t)
|
||||
(if (not (looking-at "$"))
|
||||
(replace-match indent)
|
||||
(forward-char 1))))
|
||||
(if (org-bound-and-true-p org-edit-src-picture)
|
||||
(setq total-nindent (+ total-nindent 2)))
|
||||
(setq code (buffer-string))
|
||||
|
|
Loading…
Reference in a new issue