allow nil values on location and note

This commit is contained in:
Óscar Nájera 2018-03-24 00:37:41 +01:00
parent c7fe0e363e
commit 82adc3ad38

View file

@ -155,10 +155,10 @@ holding export options."
(defun org-cv-cventry (headline contents info) (defun org-cv-cventry (headline contents info)
(let ((from-date (org-element-property :FROM headline)) (let ((from-date (org-element-property :FROM headline))
(to-date (org-element-property :TO headline)) (to-date (org-element-property :TO headline))
(location (org-element-property :LOCATION headline)) (title (org-export-data (org-element-property :title headline) info))
(title (org-element-property :title headline)) (employer (org-element-property :EMPLOYER headline))
(note (org-element-property :NOTE headline)) (location (or (org-element-property :LOCATION headline) ""))
(employer (org-element-property :EMPLOYER headline))) (note (or (org-element-property :NOTE headline) "")))
(format "\\cventry{%s}{%s}{%s}{%s}{%s}{%s}\n" (format "\\cventry{%s}{%s}{%s}{%s}{%s}{%s}\n"
(concat (org-cv-timestamp-to-shortdate from-date) (concat (org-cv-timestamp-to-shortdate from-date)
" -- " " -- "