org.el: Fix bug in `org-fill-template'

* org.el (org-fill-template): Fix bug when filling template for
a key associated to the nil value.

Thanks to Ken Williams for reporting this.
This commit is contained in:
Bastien Guerry 2012-08-13 23:53:18 +02:00
parent d1b72db961
commit 944fd9d651
1 changed files with 1 additions and 1 deletions

View File

@ -20152,7 +20152,7 @@ N may optionally be the number of spaces to remove."
(setq template
(replace-regexp-in-string
(concat "%" (regexp-quote (car entry)))
(cdr entry) template t t)))
(or (cdr entry) "") template t t)))
template))
(defun org-base-buffer (buffer)