altacv entry divider skip on last-sibling

This commit is contained in:
Óscar Nájera 2018-05-30 15:13:47 +02:00
parent 849b7aa887
commit 9aa35dd3fc

View file

@ -204,14 +204,15 @@ as a communication channel."
(to-date (org-element-property :TO headline)) (to-date (org-element-property :TO headline))
(title (org-export-data (org-element-property :title headline) info)) (title (org-export-data (org-element-property :title headline) info))
(employer (org-element-property :EMPLOYER headline)) (employer (org-element-property :EMPLOYER headline))
(location (or (org-element-property :LOCATION headline) ""))) (location (or (org-element-property :LOCATION headline) ""))
(format "\n\\cvevent{%s}{%s}{%s}{%s}%s\n\\divider" (divider (if (org-export-last-sibling-p headline info) "" "\\divider")))
(format "\n\\cvevent{%s}{%s}{%s}{%s}%s\n%s"
title title
employer employer
(concat (org-altacv-timestamp-to-shortdate from-date) (concat (org-altacv-timestamp-to-shortdate from-date)
" -- " " -- "
(org-altacv-timestamp-to-shortdate to-date)) (org-altacv-timestamp-to-shortdate to-date))
location contents))) location contents divider)))
;;;; Headline ;;;; Headline