From 7e4af5d18e522f20895bdaf26d9970f0ffdc527e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C3=93scar=20N=C3=A1jera?= Date: Wed, 25 Apr 2018 13:45:33 +0200 Subject: [PATCH] Don't export address field if empty --- ox-altacv.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox-altacv.el b/ox-altacv.el index ce242f6..7ce90e2 100644 --- a/ox-altacv.el +++ b/ox-altacv.el @@ -139,7 +139,8 @@ holding export options." "\\personalinfo{\n" ;; address (let ((address (org-export-data (plist-get info :address) info))) - (when address (format "\\mailaddress{%s}\n" (mapconcat (lambda (line) (format "%s" line)) + (when (org-string-nw-p address) (format "\\mailaddress{%s}\n" + (mapconcat (lambda (line) (format "%s" line)) (split-string address "\n") " -- ")))) ;; email (let ((email (and (plist-get info :with-email)