mirror of
https://gitlab.com/Titan-C/org-cv.git
synced 2024-11-15 02:58:29 +00:00
Don't export address field if empty
This commit is contained in:
parent
7b0c4ca1aa
commit
7e4af5d18e
1 changed files with 2 additions and 1 deletions
|
@ -139,7 +139,8 @@ holding export options."
|
||||||
"\\personalinfo{\n"
|
"\\personalinfo{\n"
|
||||||
;; address
|
;; address
|
||||||
(let ((address (org-export-data (plist-get info :address) info)))
|
(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") " -- "))))
|
(split-string address "\n") " -- "))))
|
||||||
;; email
|
;; email
|
||||||
(let ((email (and (plist-get info :with-email)
|
(let ((email (and (plist-get info :with-email)
|
||||||
|
|
Loading…
Reference in a new issue