org-lparse.el: Fix issues with formatting of custom links
* contrib/lisp/org-lparse.el (org-lparse-format-org-link): Fix issues with formatting of custom links - pass the right backend to the custom formatter. Fix for bug reported by Christian Moe here: http://lists.gnu.org/archive/html/emacs-orgmode/2011-11/msg00474.html TODO: Modify `org-bbdb-export' to support odt backend. Review contrib modules for odt compatibility.
This commit is contained in:
parent
25eefa57e4
commit
22b9e68782
|
@ -243,11 +243,11 @@ OPT-PLIST is the export options list."
|
||||||
|
|
||||||
((functionp (setq fnc (nth 2 (assoc type org-link-protocols))))
|
((functionp (setq fnc (nth 2 (assoc type org-link-protocols))))
|
||||||
;; The link protocol has a function for format the link
|
;; The link protocol has a function for format the link
|
||||||
(setq rpl
|
(setq rpl (save-match-data
|
||||||
(save-match-data
|
(funcall fnc (org-link-unescape path)
|
||||||
(funcall fnc (org-link-unescape path)
|
desc1 (case org-lparse-backend
|
||||||
desc1 org-lparse-backend))))
|
(xhtml 'html)
|
||||||
|
(t org-lparse-backend))))))
|
||||||
((string= type "file")
|
((string= type "file")
|
||||||
;; FILE link
|
;; FILE link
|
||||||
(save-match-data
|
(save-match-data
|
||||||
|
|
Loading…
Reference in New Issue