浏览代码

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")