Browse Source

Revert "ox-ascii: Fix radio link"

This reverts commit b4ffae0d096d155e76b37012fc0268f7ebe7aa70.
Nicolas Goaziou 11 years ago
parent
commit
a97959984a
1 changed files with 6 additions and 2 deletions
  1. 6 2
      lisp/ox-ascii.el

+ 6 - 2
lisp/ox-ascii.el

@@ -1385,8 +1385,12 @@ 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.
-     ((string= type "radio") desc)
+     ;; 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 fuzzy links pointing to
      ;; targets.
      ((string= type "fuzzy")