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.
This commit is contained in:
Bastien Guerry 2013-10-14 10:05:30 +02:00
parent 838cf55bcd
commit c1ea2c3df9
1 changed files with 2 additions and 0 deletions

View File

@ -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