Browse Source

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

Dan Davison 15 years ago
parent
commit
43cd1aa2b9
1 changed files with 2 additions and 2 deletions
  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))