소스 검색

ox-ascii: Small refactoring

* lisp/ox-ascii.el (org-ascii--describe-links): Small refactoring.
Nicolas Goaziou 9 년 전
부모
커밋
3135d24239
1개의 변경된 파일1개의 추가작업 그리고 5개의 파일을 삭제
  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