diff options
author | Bastien Guerry <bzg@altern.org> | 2012-08-13 23:53:18 +0200 |
---|---|---|
committer | Bastien Guerry <bzg@altern.org> | 2012-08-13 23:53:18 +0200 |
commit | 944fd9d651633e2137ba75de6b6fe6b85aa75897 (patch) | |
tree | 2268ffce08d1fb32fd4014fa81f8f4bff267b8b6 | |
parent | d1b72db9618fe36be3bc81e819a593b910f75eb3 (diff) | |
download | org-mode-944fd9d651633e2137ba75de6b6fe6b85aa75897.tar.gz |
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.
-rw-r--r-- | lisp/org.el | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lisp/org.el b/lisp/org.el index 611b7a5..c9b6175 100644 --- a/lisp/org.el +++ b/lisp/org.el @@ -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) |