瀏覽代碼

Export: Fix problem with => in clock lines triggering verbatim text.

Reported by Daniel Clemente.
Carsten Dominik 16 年之前
父節點
當前提交
8be2c90ead
共有 2 個文件被更改,包括 8 次插入1 次删除
  1. 5 0
      lisp/ChangeLog
  2. 3 1
      lisp/org-exp.el

+ 5 - 0
lisp/ChangeLog

@@ -1,3 +1,8 @@
+2009-02-07  Carsten Dominik  <carsten.dominik@gmail.com>
+
+	* org-exp.el (org-export-preprocess-string): Remove clock lines
+	earlier, so that they cannot cotribute to verbatim snippets.
+
 2009-02-06  Carsten Dominik  <carsten.dominik@gmail.com>
 
 	* org-exp.el (org-export-remove-or-extract-drawers): Fix regexp

+ 3 - 1
lisp/org-exp.el

@@ -1561,6 +1561,9 @@ on this string to produce the exported version."
       ;; Protect quoted subtrees
       (org-export-protect-quoted-subtrees)
 
+      ;; Remove clock lines
+      (org-export-remove-clock-lines)
+
       ;; Protect verbatim elements
       (org-export-protect-verbatim)
 
@@ -1568,7 +1571,6 @@ on this string to produce the exported version."
       (org-export-mark-blockquote-and-verse)
 
       ;; Remove timestamps, if the user has requested so
-      (org-export-remove-clock-lines)
       (unless (plist-get parameters :timestamps)
 	(org-export-remove-timestamps))