Don't generate links for empty theme or transition.

* ox-deck.el (org-deck--get-packages): Check for non-blank deck-theme
  and deck-transition.
This commit is contained in:
Rick Frankel 2013-03-03 20:50:58 -05:00 committed by Bastien Guerry
parent 6ca7953db5
commit 8ed99fad6b
1 changed files with 9 additions and 7 deletions

View File

@ -308,13 +308,15 @@ Note that the wrapper div must include the class \"slide\"."
(when (file-exists-p (concat dir base "html"))
(add-to-list 'snippets (concat dir base "html"))))))
(org-deck--find-extensions))
(add-to-list 'sheets
(if (file-name-directory theme) theme
(format "%sthemes/style/%s" prefix theme)))
(add-to-list
'sheets
(if (file-name-directory transition) transition
(format "%sthemes/transition/%s" prefix transition)))
(if (not (string-match-p "^[[:space:]]*$" theme))
(add-to-list 'sheets
(if (file-name-directory theme) theme
(format "%sthemes/style/%s" prefix theme))))
(if (not (string-match-p "^[[:space:]]*$" transition))
(add-to-list
'sheets
(if (file-name-directory transition) transition
(format "%sthemes/transition/%s" prefix transition))))
(list :scripts (nreverse scripts) :sheets (nreverse sheets)
:snippets snippets)))