From 22b9e6878208eed38a03f3eebcf85ff6a5956bf6 Mon Sep 17 00:00:00 2001 From: Jambunathan K Date: Sun, 13 Nov 2011 02:33:35 +0530 Subject: [PATCH] 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. --- contrib/lisp/org-lparse.el | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/contrib/lisp/org-lparse.el b/contrib/lisp/org-lparse.el index bb03669d8..5c4b33413 100755 --- a/contrib/lisp/org-lparse.el +++ b/contrib/lisp/org-lparse.el @@ -243,11 +243,11 @@ OPT-PLIST is the export options list." ((functionp (setq fnc (nth 2 (assoc type org-link-protocols)))) ;; The link protocol has a function for format the link - (setq rpl - (save-match-data - (funcall fnc (org-link-unescape path) - desc1 org-lparse-backend)))) - + (setq rpl (save-match-data + (funcall fnc (org-link-unescape path) + desc1 (case org-lparse-backend + (xhtml 'html) + (t org-lparse-backend)))))) ((string= type "file") ;; FILE link (save-match-data