Do patches for contrib go to the list? this fixes export of checkbox list
items when they are part of a deck.js "build" within a slide.
From dacc39e25f86ddf0cfda5693a4ace3a26cf31e73 Mon Sep 17 00:00:00 2001
From: Matt Price <matt.pr...@utoronto.ca>
Date: Tue, 7 Jul 2015 17:53:03 -0400
Subject: [PATCH] ox-deck: parse checkboxes properly

*ox-deck.el
Previously, list items with checkboxes would not build properly. This
trivial and clumsy patch fixes that.
---
 contrib/lisp/ox-deck.el | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/contrib/lisp/ox-deck.el b/contrib/lisp/ox-deck.el
index 915373f..03d035c 100644
--- a/contrib/lisp/ox-deck.el
+++ b/contrib/lisp/ox-deck.el
@@ -366,7 +366,7 @@ holding export options."
   (concat contents "\n"))
 
 (defun org-deck-headline (headline contents info)
-  (let ((org-html-toplevel-hlevel 2)
+    (let ((org-html-toplevel-hlevel 2)
         (class (or (org-element-property :HTML_CONTAINER_CLASS headline) ""))
         (level (org-export-get-relative-level headline info)))
     (when (and (= 1 level) (not (string-match-p "\\<slide\\>" class)))
@@ -382,7 +382,10 @@ the \"slide\" class will be added to the to the list element,
  which will make the list into a \"build\"."
   (let ((text (org-html-item item contents info)))
     (if (org-export-get-node-property :STEP item t)
-        (replace-regexp-in-string "^<li>" "<li class='slide'>" text)
+	(progn
+	  (replace-regexp-in-string "^<li>" "<li class='slide'>" text)
+	  (replace-regexp-in-string "^<li class='checkbox'>" "<li class='checkbox slide'>" text)
+	  )
       text)))
 
 (defun org-deck-link (link desc info)
-- 
2.4.3

Reply via email to