Only generate \position when #+TITLE is not empty

TODO: This still doesn't work the way I want for some reason.

Signed-off-by: Sergio Durigan Junior <sergiodj@sergiodj.net>
This commit is contained in:
Sergio Durigan Junior 2024-03-16 16:47:36 -04:00
parent 106c840726
commit 37cfa7ff64
Signed by: sergiodj
GPG key ID: D0EB762865FC5E36

View file

@ -140,7 +140,8 @@ holding export options."
(format "\\name{%s}{%s}\n" first-name last-name))
;; Title
(format "\\position{%s}\n" title)
(when (org-string-nw-p title)
(format "\\position{%s}\n" title))
;; photo
(let* ((photo (plist-get info :photo))