babel: now strips protective commas from code blocks on tangling

This commit is contained in:
Eric Schulte 2010-06-07 11:46:11 -07:00
parent 8b0d3f96bb
commit ee94addaac
1 changed files with 2 additions and 1 deletions

View File

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