summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBastien Guerry <bzg@altern.org>2013-10-14 08:05:30 (GMT)
committer Bastien Guerry <bzg@altern.org>2013-10-14 08:05:30 (GMT)
commitc1ea2c3df94949d346eabc386daaff298a52cf69 (patch)
tree8f04f975e7d02d5e00b19b70b881ee7dcbe67889
parent838cf55bcd96d730fefa61d79a3d41de7bc90b41 (diff)
downloadorg-mode-c1ea2c3df94949d346eabc386daaff298a52cf69.zip
org-mode-c1ea2c3df94949d346eabc386daaff298a52cf69.tar.gz
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.
-rw-r--r--lisp/ox-org.el2
1 files changed, 2 insertions, 0 deletions
diff --git a/lisp/ox-org.el b/lisp/ox-org.el
index 644cc0d..022474a 100644
--- a/lisp/ox-org.el
+++ b/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