1
0
mirror of https://git.savannah.gnu.org/git/emacs/org-mode.git synced 2024-12-23 10:34:17 +00:00

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).
This commit is contained in:
Nicolas Goaziou 2013-11-03 11:35:31 +01:00
parent d80bdb7431
commit d7379053c0

View File

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