浏览代码

org-babel: trim trailing newline from noweb-referenced material

Dan Davison 15 年之前
父节点
当前提交
43cd1aa2b9
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      contrib/babel/lisp/org-babel.el

+ 2 - 2
contrib/babel/lisp/org-babel.el

@@ -782,8 +782,8 @@ these arguments are not evaluated in the current source-code block but are passe
                         (if point
                             (save-excursion
                               (goto-char point)
-                              (concat "\n" (org-babel-expand-noweb-references
-                                            (org-babel-get-src-block-info))))
+                              (org-babel-trim (org-babel-expand-noweb-references
+			       (org-babel-get-src-block-info))))
                           ""))))))
         (nb-add (buffer-substring index (point-max)))))
     new-body))