forked from mirrors/org-cv
allow nil values on location and note
This commit is contained in:
parent
c7fe0e363e
commit
82adc3ad38
1 changed files with 4 additions and 4 deletions
8
ox-cv.el
8
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)
|
||||
" -- "
|
||||
|
|
Loading…
Reference in a new issue