From 37cfa7ff647582ad14870d7780cbf927f240b7e2 Mon Sep 17 00:00:00 2001 From: Sergio Durigan Junior Date: Sat, 16 Mar 2024 16:47:36 -0400 Subject: [PATCH] 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 --- ox-awesomecv2.el | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ox-awesomecv2.el b/ox-awesomecv2.el index a8a4bd6..461bd56 100644 --- a/ox-awesomecv2.el +++ b/ox-awesomecv2.el @@ -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))