Skip to content

Commit

Permalink
Fix the bug of exporting sub-tree.
Browse files Browse the repository at this point in the history
  • Loading branch information
Yujie Wen committed Mar 30, 2014
1 parent 6972b52 commit 8b11f09
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions ox-reveal.el
Original file line number Diff line number Diff line change
Expand Up @@ -522,11 +522,10 @@ Add proper internal link to each headline."

(defun org-reveal-toc (depth info)
"Build a slide of table of contents."
(format
"<section>\n%s</section>\n"
(org-reveal-toc-headlines
(org-export-collect-headlines info depth)
info)))
(let ((headlines (org-export-collect-headlines info depth)))
(and headlines
(format "<section>\n%s</section>\n"
(org-reveal-toc-headlines headlines info)))))

(defun org-reveal-inner-template (contents info)
"Return body of document string after HTML conversion.
Expand Down Expand Up @@ -736,8 +735,8 @@ info is a plist holding export options."
(interactive)
(let* ((extension (concat "." org-html-extension))
(file (org-export-output-file-name extension subtreep)))
(org-export-to-file
'reveal file subtreep visible-only body-only ext-plist)))
(org-export-to-file 'reveal file
async subtreep visible-only body-only ext-plist)))

(defun org-reveal-export-to-html-and-browse
(&optional async subtreep visible-only body-only ext-plist)
Expand Down

0 comments on commit 8b11f09

Please sign in to comment.