Przeglądaj źródła

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.
Rick Frankel 12 lat temu
rodzic
commit
8ed99fad6b
1 zmienionych plików z 9 dodań i 7 usunięć
  1. 9 7
      contrib/lisp/ox-deck.el

+ 9 - 7
contrib/lisp/ox-deck.el

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