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

* ob-tangle.el (org-babel-spec-to-string): Don't use
`org-babel-trim'.
This commit is contained in:
Bastien Guerry 2014-04-18 14:49:21 +02:00
parent c9a8659cb6
commit a13e133f5a
1 changed files with 4 additions and 1 deletions

View File

@ -352,7 +352,10 @@ that the appropriate major-mode is set. SPEC has the form:
(format
"%s\n"
(org-unescape-code-in-string
(org-babel-trim body (if org-src-preserve-indentation "[\f\n\r\v]")))))
(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)))))
(when link-p
(funcall
insert-comment