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
  10b06ae53c.
This commit is contained in:
Nicolas Goaziou 2012-02-02 20:29:33 +01:00
parent fb31480013
commit efc10c9286
1 changed files with 1 additions and 1 deletions

View File

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