Преглед на файлове

org-latex: now checking org-example rather than org-protected on verbatim export

* lisp/org-latex.el (org-export-latex-fixed-width): now checking
  org-example rather than org-protected on verbatim export, because by
  default all ": " prefixed lines are marked protected
Eric Schulte преди 15 години
родител
ревизия
b9548e92ab
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      lisp/org-latex.el

+ 1 - 1
lisp/org-latex.el

@@ -1537,7 +1537,7 @@ The conversion is made depending of STRING-BEFORE and STRING-AFTER."
   "When OPT is non-nil convert fixed-width sections to LaTeX."
   (goto-char (point-min))
   (while (re-search-forward "^[ \t]*:\\([ \t]\\|$\\)" nil t)
-    (org-if-unprotected
+    (unless (get-text-property (point) 'org-example)
      (if opt
 	 (progn (goto-char (match-beginning 0))
 		(insert "\\begin{verbatim}\n")