Pārlūkot izejas kodu

Fix bug with LaTeX lists export in protected regions.

Carsten Dominik 16 gadi atpakaļ
vecāks
revīzija
926054b3e5
1 mainītis faili ar 3 papildinājumiem un 2 dzēšanām
  1. 3 2
      lisp/org-export-latex.el

+ 3 - 2
lisp/org-export-latex.el

@@ -1219,8 +1219,9 @@ If TIMESTAMPS, convert timestamps, otherwise delete them."
   "Convert lists to LaTeX."
   (goto-char (point-min))
   (while (re-search-forward org-list-beginning-re nil t)
-    (beginning-of-line)
-    (insert (org-list-to-latex (org-list-parse-list t)) "\n")))
+    (org-if-unprotected
+     (beginning-of-line)
+     (insert (org-list-to-latex (org-list-parse-list t)) "\n"))))
 
 (defconst org-latex-entities
  '("\\!"