summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNicolas Goaziou <n.goaziou@gmail.com>2010-11-12 03:08:09 +0100
committerEric Schulte <schulte.eric@gmail.com>2010-11-12 16:39:35 -0700
commitc303127cee79496233c427019b760fe3cf1bd961 (patch)
treed94710615efd4856b64517f123d9e26d7ae6d707
parenta9c5797fa1b7f221c22bc9ba5e9af3223dabdd63 (diff)
downloadorg-mode-c303127cee79496233c427019b760fe3cf1bd961.tar.gz
babel: delay call to `org-export-blocks-preprocess' in export
* lisp/org-exp.el (org-export-preprocess-string): delaying code block processing a bit to allow correct list parsing in the export string
-rw-r--r--lisp/org-exp-blocks.el3
-rw-r--r--lisp/org-exp.el3
2 files changed, 3 insertions, 3 deletions
diff --git a/lisp/org-exp-blocks.el b/lisp/org-exp-blocks.el
index 3751e68..a469afc 100644
--- a/lisp/org-exp-blocks.el
+++ b/lisp/org-exp-blocks.el
@@ -201,9 +201,6 @@ which defaults to the value of `org-export-blocks-witheld'."
(interblock start (point-max))
(run-hooks 'org-export-blocks-postblock-hook)))))
-(add-hook 'org-export-preprocess-after-include-files-hook
- 'org-export-blocks-preprocess)
-
;;================================================================================
;; type specific functions
diff --git a/lisp/org-exp.el b/lisp/org-exp.el
index 05d8ef6..2affcba 100644
--- a/lisp/org-exp.el
+++ b/lisp/org-exp.el
@@ -1080,6 +1080,9 @@ on this string to produce the exported version."
;; Mark end of lists
(org-export-mark-list-ending backend)
+ ;; Export code blocks
+ (org-export-blocks-preprocess)
+
;; Handle source code snippets
(org-export-replace-src-segments-and-examples backend)