Browse Source

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).
Nicolas Goaziou 11 years ago
parent
commit
d7379053c0
1 changed files with 1 additions and 2 deletions
  1. 1 2
      lisp/ox.el

+ 1 - 2
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