Browse Source

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.
Jambunathan K 13 years ago
parent
commit
b5b4134d0c
1 changed files with 3 additions and 1 deletions
  1. 3 1
      lisp/org-inlinetask.el

+ 3 - 1
lisp/org-inlinetask.el

@@ -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)))