Browse Source

babel: adding some newline padding around tangle code blocks

Eric Schulte 11 years ago
parent
commit
198780f1ff
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/babel/lisp/org-babel-tangle.el

+ 1 - 1
contrib/babel/lisp/org-babel-tangle.el

@@ -255,7 +255,7 @@ form
 					 "no")
                               (fifth spec)))))
       (insert-comment (format "[[%s][%s]]" (org-link-escape link) source-name))
-      (insert (format "%s" (org-babel-chomp body)))
+      (insert (format "\n%s\n" (org-babel-chomp body)))
       (insert-comment (format "%s ends here" source-name)))))
 
 (provide 'org-babel-tangle)