Browse Source

simplified insertion of file links (makes for better image export)

Eric Schulte 16 years ago
parent
commit
d45e3d318f
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/org-babel.el

+ 1 - 2
lisp/org-babel.el

@@ -601,8 +601,7 @@ relies on `org-babel-insert-result'."
   "Return an `org-mode' link with the path being the value or
 RESULT, and the display being the `file-name-nondirectory' if
 non-nil."
-  (let ((name (file-name-nondirectory result)))
-    (concat "[[file:" result (if name (concat "][" name "]]") "]]"))))
+  (concat "[[file:" result "]]"))
 
 (defun org-babel-examplize-region (beg end)
   "Comment out region using the ': ' org example quote."