Browse Source

org-export: Fix bug with false-positive inline tasks

* contrib/lisp/org-export.el (org-export-with-current-buffer-copy):
  Fix bug with false-positive inline tasks.
Nicolas Goaziou 7 years ago
parent
commit
10b06ae53c
1 changed files with 2 additions and 1 deletions
  1. 2 1
      contrib/lisp/org-export.el

+ 2 - 1
contrib/lisp/org-export.el

@@ -2012,7 +2012,8 @@ Point is at buffer's beginning when BODY is applied."
        (with-temp-buffer
 	 (let ((buffer-invisibility-spec nil))
 	   (org-clone-local-variables
-	    ,original-buffer "^\\(org-\\|orgtbl-\\|major-mode$\\)")
+	    ,original-buffer
+	    "^\\(org-\\|orgtbl-\\|major-mode$\\|outline-regexp$\\)")
 	   (insert ,buffer-string)
 	   (mapc (lambda (ov)
 		   (move-overlay