浏览代码

ox-org.el: Show all headings and all blocks before fontifying when htmlizing sources

* ox-org.el (org-org-publish-to-org): When htmlizing an .org
file, ensure to show all headings and all blocks before
fontifying.
Bastien Guerry 11 年之前
父节点
当前提交
c1ea2c3df9
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      lisp/ox-org.el

+ 2 - 0
lisp/ox-org.el

@@ -226,6 +226,8 @@ Return output file name."
 	   (work-buffer (or visitingp (find-file filename)))
 	   newbuf)
       (font-lock-fontify-buffer)
+      (show-all)
+      (org-show-block-all)
       (setq newbuf (htmlize-buffer))
       (with-current-buffer newbuf
 	(when org-org-htmlized-css-url