ox-ascii: Handle (custom-)id links to unnumbered headlines

* lisp/ox-ascii.el (org-ascii--describe-links): When a headline is
  unnumbered, refer to its title instead of dropping the ball.
This commit is contained in:
Nicolas Goaziou 2015-01-01 21:37:35 +01:00
parent 8b0823b3e0
commit 10954832e5
1 changed files with 4 additions and 2 deletions

View File

@ -919,8 +919,10 @@ channel."
(if (not dest) (org-ascii--translate "Unknown reference" info)
(format
(org-ascii--translate "See section %s" info)
(mapconcat 'number-to-string
(org-export-get-headline-number dest info) "."))))
(if (org-export-numbered-headline-p dest info)
(mapconcat #'number-to-string
(org-export-get-headline-number dest info) ".")
(org-export-data (org-element-property :title dest) info)))))
width info) "\n\n")))
;; Do not add a link that cannot be resolved and doesn't have
;; any description: destination is already visible in the