소스 검색

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

This reverts commit a13e133f5a5330f82683fe490d6d697d9aa55c51.
Bastien Guerry 11 년 전
부모
커밋
6175be9487
1개의 변경된 파일1개의 추가작업 그리고 4개의 파일을 삭제
  1. 1 4
      lisp/ob-tangle.el

+ 1 - 4
lisp/ob-tangle.el

@@ -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