Browse Source

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

Eric Schulte 16 năm trước cách đây
mục cha
commit
d45e3d318f
1 tập tin đã thay đổi với 1 bổ sung2 xóa
  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."