From 82adc3ad384c4caf3d649580b5dd4654d10103b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Sat, 24 Mar 2018 00:37:41 +0100 Subject: [PATCH] allow nil values on location and note --- ox-cv.el | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ox-cv.el b/ox-cv.el index 8841b6e..c724ebf 100644 --- a/ox-cv.el +++ b/ox-cv.el @@ -155,10 +155,10 @@ holding export options." (defun org-cv-cventry (headline contents info) (let ((from-date (org-element-property :FROM headline)) (to-date (org-element-property :TO headline)) - (location (org-element-property :LOCATION headline)) - (title (org-element-property :title headline)) - (note (org-element-property :NOTE headline)) - (employer (org-element-property :EMPLOYER headline))) + (title (org-export-data (org-element-property :title headline) info)) + (employer (org-element-property :EMPLOYER headline)) + (location (or (org-element-property :LOCATION headline) "")) + (note (or (org-element-property :NOTE headline) ""))) (format "\\cventry{%s}{%s}{%s}{%s}{%s}{%s}\n" (concat (org-cv-timestamp-to-shortdate from-date) " -- "