Revert "ob-tangle.el (org-babel-spec-to-string): Don't use `org-babel-trim"

This reverts commit a13e133f5a.
This commit is contained in:
Bastien Guerry 2014-04-19 14:54:48 +02:00
parent 4ea6c690fd
commit 6175be9487

View file

@ -352,10 +352,7 @@ that the appropriate major-mode is set. SPEC has the form:
(format
"%s\n"
(org-unescape-code-in-string
(let ((rep (if org-src-preserve-indentation "[\f\n\r\v]"
"[\f\t\n\r\v]")))
(replace-regexp-in-string
(concat rep "\\(.+\\)" rep) "\\1" body)))))
(org-babel-trim body (if org-src-preserve-indentation "[\f\n\r\v]")))))
(when link-p
(funcall
insert-comment