Browse Source

org-export: Fix bug preveting low level headlines to close properly in e-latex

* contrib/lisp/org-export.el (org-export-with-current-buffer-copy):
  Copy `outline-level' value in the temporary buffer.  This fixes
  a bug introduced by commit
  10b06ae53cb29f2eedd9a2db405ca6084a8377b2.
Nicolas Goaziou 13 years ago
parent
commit
efc10c9286
1 changed files with 1 additions and 1 deletions
  1. 1 1
      contrib/lisp/org-export.el

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

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