|
@@ -102,9 +102,10 @@ exported source code blocks by language."
|
|
|
((> (length tangle) 0) tangle))
|
|
|
target-file))
|
|
|
(file-name (when base-name
|
|
|
- (if (string= base-name
|
|
|
- (file-name-sans-extension base-name))
|
|
|
- (concat base-name "." ext) base-name))))
|
|
|
+ (if (and ext
|
|
|
+ (string= base-name
|
|
|
+ (file-name-sans-extension base-name)))
|
|
|
+ (concat base-name "." ext) base-name))))
|
|
|
;; ;; debugging
|
|
|
;; (message "tangle=%S base-name=%S file-name=%S"
|
|
|
;; tangle base-name file-name)
|