From 9aa35dd3fca239461b9bc25963e355825ba917c6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Wed, 30 May 2018 15:13:47 +0200 Subject: [PATCH] altacv entry divider skip on last-sibling --- ox-altacv.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/ox-altacv.el b/ox-altacv.el index 7ce90e2..5f7bce0 100644 --- a/ox-altacv.el +++ b/ox-altacv.el @@ -204,14 +204,15 @@ as a communication channel." (to-date (org-element-property :TO headline)) (title (org-export-data (org-element-property :title headline) info)) (employer (org-element-property :EMPLOYER headline)) - (location (or (org-element-property :LOCATION headline) ""))) - (format "\n\\cvevent{%s}{%s}{%s}{%s}%s\n\\divider" + (location (or (org-element-property :LOCATION headline) "")) + (divider (if (org-export-last-sibling-p headline info) "" "\\divider"))) + (format "\n\\cvevent{%s}{%s}{%s}{%s}%s\n%s" title employer (concat (org-altacv-timestamp-to-shortdate from-date) " -- " (org-altacv-timestamp-to-shortdate to-date)) - location contents))) + location contents divider))) ;;;; Headline