瀏覽代碼

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

Eric Schulte 16 年之前
父節點
當前提交
d45e3d318f
共有 1 個文件被更改,包括 1 次插入2 次删除
  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."