Explorar o código

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

Reported by Daniel Clemente.
Carsten Dominik %!s(int64=16) %!d(string=hai) anos
pai
achega
8be2c90ead
Modificáronse 2 ficheiros con 8 adicións e 1 borrados
  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))