Check org-inlinetask-export-templates before exporting inline tasks

* lisp/org-inlinetask.el (org-inlinetask-export-handler): Don't export
inline tasks if the current backend has provided no entries in
org-inlinetask-export-templates.
This commit is contained in:
Jambunathan K 2011-08-06 20:04:35 +05:30 committed by Nicolas Goaziou
parent ce6010262d
commit b5b4134d0c
1 changed files with 3 additions and 1 deletions

View File

@ -333,7 +333,9 @@ Either remove headline and meta data, or do special formatting."
;; Remove the task.
(goto-char beg)
(delete-region beg end)
(when org-inlinetask-export
(when (and org-inlinetask-export
(assq org-export-current-backend
org-inlinetask-export-templates))
;; Format CONTENT, if appropriate.
(setq content
(if (not (and content (string-match "\\S-" content)))