From f280a3ef4c8bc54eb0a299a66d42a4ac47622730 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Fri, 12 Nov 2010 03:08:09 +0100 Subject: [PATCH] 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 --- lisp/org-exp-blocks.el | 3 --- lisp/org-exp.el | 3 +++ 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 9004dd5..820c179 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) -- 1.7.3.2