Ver Fonte

ox-ascii: Small refactoring

* lisp/ox-ascii.el (org-ascii--describe-links): Small refactoring.
Nicolas Goaziou há 9 anos atrás
pai
commit
3135d24239
1 ficheiros alterados com 1 adições e 5 exclusões
  1. 1 5
      lisp/ox-ascii.el

+ 1 - 5
lisp/ox-ascii.el

@@ -929,11 +929,7 @@ channel."
 	((not (org-element-contents link)) nil)
 	;; Do not add a link already handled by custom export
 	;; functions.
-	((let ((protocol (nth 2 (assoc type org-link-protocols)))
-	       (path (org-element-property :path link)))
-	   (and (functionp protocol)
-		(funcall protocol (org-link-unescape path) anchor 'ascii)))
-	 nil)
+	((org-export-custom-protocol-maybe link anchor 'ascii) nil)
 	(t
 	 (concat
 	  (org-ascii--fill-string