瀏覽代碼

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
Nicolas Goaziou 14 年之前
父節點
當前提交
c303127cee
共有 2 個文件被更改,包括 3 次插入3 次删除
  1. 0 3
      lisp/org-exp-blocks.el
  2. 3 0
      lisp/org-exp.el

+ 0 - 3
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
 

+ 3 - 0
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)