emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Rick Frankel <rick@rickster.com>
To: emacs-orgmode@gnu.org
Subject: [PATCH] Don't generate links for empty theme or transition.
Date: Sun, 3 Mar 2013 20:50:58 -0500	[thread overview]
Message-ID: <20130304015058.GD45961@BigDog.local> (raw)

* ox-deck.el (org-deck--get-packages): Check for non-blank deck-theme
  and deck-transition.
---
 contrib/lisp/ox-deck.el | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/contrib/lisp/ox-deck.el b/contrib/lisp/ox-deck.el
index 5d25369..23cc3ab 100644
--- a/contrib/lisp/ox-deck.el
+++ b/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)))
 
-- 
1.8.1.2

             reply	other threads:[~2013-03-04  1:51 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-04  1:50 Rick Frankel [this message]
2013-03-04  6:39 ` [PATCH] Don't generate links for empty theme or transition Bastien

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130304015058.GD45961@BigDog.local \
    --to=rick@rickster.com \
    --cc=emacs-orgmode@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).