mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-11-14 18:48:30 +00:00
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)
|
(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)
|
||||||
" -- "
|
" -- "
|
||||||
|
|
Loading…
Reference in a new issue