aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ennu.el6
1 files changed, 3 insertions, 3 deletions
diff --git a/ennu.el b/ennu.el
index 76485a3..8aa2c85 100644
--- a/ennu.el
+++ b/ennu.el
@@ -267,9 +267,9 @@ with two arguments -- the key and the value."
(ennu-plist-map-to-plist
(lambda (key value)
(pcase key
- (:title (funcall export (first (plist-get metadata :title))))
- (:date (org-timestamp-to-time (first (plist-get metadata :date))))
- (:author (funcall export (first (plist-get metadata :author))))))
+ ((or :author :title)
+ (funcall export (first (plist-get metadata key))))
+ (:date (org-timestamp-to-time (first (plist-get metadata :date))))))
metadata))))
(defvar ennu-mandatory-metadata