From d7379053c0ad41e151f5403d1e5f051b9cc7ce70 Mon Sep 17 00:00:00 2001 From: Nicolas Goaziou Date: Sun, 3 Nov 2013 11:35:31 +0100 Subject: [PATCH] ox: Fix OPTIONS in default template * lisp/ox.el (org-export-insert-default-template): Make sure strings are properly quoted when inserting a template. Specifically, default value for drawers should be d:(not "LOGBOOK"), not d:(not LOGBOOK). --- lisp/ox.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lisp/ox.el b/lisp/ox.el index 26bcb1944..72a7a056c 100644 --- a/lisp/ox.el +++ b/lisp/ox.el @@ -3163,8 +3163,7 @@ locally for the subtree through node properties." (when options (let ((items (mapcar - (lambda (opt) - (format "%s:%s" (car opt) (format "%s" (cdr opt)))) + #'(lambda (opt) (format "%s:%S" (car opt) (cdr opt))) (sort options (lambda (k1 k2) (string< (car k1) (car k2))))))) (if subtreep (org-entry-put -- 2.11.4.GIT