diff --git a/lisp/org-babel-tangle.el b/lisp/org-babel-tangle.el index 8115e46e1..6fadaa6b4 100644 --- a/lisp/org-babel-tangle.el +++ b/lisp/org-babel-tangle.el @@ -145,13 +145,14 @@ assumes that the appropriate major-mode is set. SPEC has the form (link source-name params body)" - (flet ((insert-comment (text) - (comment-region (point) (progn (insert text) (point))))) - (let ((link (first spec)) - (source-name (second spec)) - (body (fourth spec))) + (let ((link (first spec)) + (source-name (second spec)) + (body (fourth spec)) + (comment-padding "* ")) + (flet ((insert-comment (text) + (comment-region (point) (progn (insert text) (point))))) (insert "\n\n") - (insert-comment (format "[[%s][%s]]" (org-link-escape link) source-name)) + (insert-comment (format "* [[%s][%s]]" (org-link-escape link) source-name)) (insert (format "\n%s\n" (org-babel-chomp body))) (insert-comment (format "%s ends here" source-name)) (insert "\n"))))