Browse Source

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.
Jambunathan K 13 years ago
parent
commit
22b9e68782
1 changed files with 5 additions and 5 deletions
  1. 5 5
      contrib/lisp/org-lparse.el

+ 5 - 5
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