From 40b0171a8c73268db3dd9b2e62f8a6f308b6e1a9 Mon Sep 17 00:00:00 2001 From: SimonPaul02 <68793520+SimonPaul02@users.noreply.github.com> Date: Fri, 29 Apr 2022 16:37:28 +0200 Subject: [PATCH] Removed whitespace if no role is provided If you had no role -> {} in your cventry, there was a gap before. Now, I removed it and it looks natural. --- awesome-cv.cls | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/awesome-cv.cls b/awesome-cv.cls index f2e717a..4347432 100644 --- a/awesome-cv.cls +++ b/awesome-cv.cls @@ -648,8 +648,10 @@ \ifempty{#2#3} {\entrypositionstyle{#1} & \entrydatestyle{#4} \\} {\entrytitlestyle{#2} & \entrylocationstyle{#3} \\ - \entrypositionstyle{#1} & \entrydatestyle{#4} \\} - \multicolumn{2}{L{\textwidth}}{\descriptionstyle{#5}} + \entrypositionstyle{#1} & \entrydatestyle{#4} \\} +\if\relax\detokenize{#5}\relax\else % THIS LINE ADDED TO CHECK IF LAST ARGUMENT IS EMPTY + \multicolumn{2}{L{\textwidth}}{\ifempty{#1}{\vskip-1\baselineskip}{}\descriptionstyle{#5}}% ONLY DO THIS IF #5 IS NOT EMPTY + \fi % END OF THE IF STATEMENT \end{tabular*}% }