Browse Source

babel: when tangling do not add extension if filename supplied

Dan Davison 15 years ago
parent
commit
29a2ab0047
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

@@ -109,7 +109,7 @@ exported source code blocks by language."
                                       target-file))
                        (file-name (when base-name
                                     ;; decide if we want to add ext to base-name
-                                    (if (and ext (not (string= (file-name-extension base-name) ext)))
+                                    (if (and ext (string= "yes" tangle))
                                         (concat base-name "." ext) base-name))))
                   ;; ;; debugging
                   ;; (message