Browse Source

ox-ascii: Fix radio link

* lisp/ox-ascii.el (org-ascii-link): Correctly handle case mismatch
  between radio targets and radio links.
Nicolas Goaziou 11 years ago
parent
commit
b4ffae0d09
1 changed files with 2 additions and 6 deletions
  1. 2 6
      lisp/ox-ascii.el

+ 2 - 6
lisp/ox-ascii.el

@@ -1385,12 +1385,8 @@ INFO is a plist holding contextual information."
       (let ((ref (org-element-property :path link)))
 	(format (org-export-get-coderef-format ref desc)
 		(org-export-resolve-coderef ref info))))
-     ;; Do not apply a special syntax on radio links.  Though, use
-     ;; transcoded target's contents as output.
-     ((string= type "radio")
-      (let ((destination (org-export-resolve-radio-link link info)))
-	(when destination
-	  (org-export-data (org-element-contents destination) info))))
+     ;; Do not apply a special syntax on radio links.
+     ((string= type "radio") desc)
      ;; Do not apply a special syntax on fuzzy links pointing to
      ;; targets.
      ((string= type "fuzzy")