ox-ascii: Fix broken link export for broken fuzzy links
* lisp/ox-ascii.el (org-ascii--describe-links): Ignore all kinds of broken links, not just broken id links. Reported-by: Pablo Aguado <aguadopd@hotmail.com> Link: https://orgmode.org/list/SA1P223MB070291E02E95707C31342244C2102@SA1P223MB0702.NAMP223.PROD.OUTLOOK.COM
This commit is contained in:
parent
a9275d5fd1
commit
d6353b283a
|
@ -952,14 +952,15 @@ channel."
|
||||||
;; Only links with a description need an entry. Other are
|
;; Only links with a description need an entry. Other are
|
||||||
;; already handled in `org-ascii-link'.
|
;; already handled in `org-ascii-link'.
|
||||||
(when description
|
(when description
|
||||||
(let ((dest (if (equal type "fuzzy")
|
(let ((dest
|
||||||
(org-export-resolve-fuzzy-link link info)
|
|
||||||
;; Ignore broken links. On broken link,
|
;; Ignore broken links. On broken link,
|
||||||
;; `org-export-resolve-id-link' will throw an
|
;; `org-export-resolve-id-link' will throw an
|
||||||
;; error and we will return nil.
|
;; error and we will return nil.
|
||||||
(condition-case nil
|
(condition-case nil
|
||||||
(org-export-resolve-id-link link info)
|
(if (equal type "fuzzy")
|
||||||
(org-link-broken nil)))))
|
(org-export-resolve-fuzzy-link link info)
|
||||||
|
(org-export-resolve-id-link link info))
|
||||||
|
(org-link-broken nil))))
|
||||||
(when dest
|
(when dest
|
||||||
(concat
|
(concat
|
||||||
(org-ascii--fill-string
|
(org-ascii--fill-string
|
||||||
|
|
Loading…
Reference in New Issue