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.
This commit is contained in:
SimonPaul02 2022-04-29 16:37:28 +02:00 committed by GitHub
parent 1a5691e63f
commit 40b0171a8c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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*}%
}