Treat a blank \cventry description as empty (#312) (#314)

The description (#7) was tested with \ifx&#7&, so a description holding
only whitespace, such as the line break left when its content is
commented out, counted as non-empty and added an empty description
line. Test it with etoolbox's \ifblank in all body styles instead.


Claude-Session: https://claude.ai/code/session_01Ay3NRtLtypuStJdysepuJU

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
Andreas Richardson 2026-10-25 20:12:34 +00:00 • committed by GitHub
commit cf48a1a3a5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 6 additions and 5 deletions

View file

@ -4,6 +4,7 @@ version next
rules by adding \hss glue as in \dotfill (#307)
- Update "circle" option to allow for half-filled circles in skill matrix (#309)
- Fix "Arithmetic overflow" in cvcolumns when every column sets a width (#311)
- Treat a \cventry description containing only whitespace as empty (#312)
version 2.6.1 (24 Jun 2026)
- Allow the customisation of the contemporary style (#297)

View file

@ -132,7 +132,7 @@
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
\strut%
\ifx&#7&%
\ifblank{#7}{\@tempswatrue}{\@tempswafalse}\if@tempswa%
\else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}
\@initializebox{\cvitemwithcommentbox}

View file

@ -190,7 +190,7 @@
{{\bfseries #4} & {\bfseries #5}\\}%
{\itshape #3\ifstrempty{#6}{}{, #6}} & {\itshape #2}\\%
\end{tabular*}%
\ifx&#7&%
\ifblank{#7}{\@tempswatrue}{\@tempswafalse}\if@tempswa%
\else{\\%
\begin{minipage}{\maincolumnwidth}%
\small#7%

View file

@ -129,7 +129,7 @@
.\strut}%
\usebox{\cventryyearbox}%
\end{minipage}\strut%
\ifx&#7&%
\ifblank{#7}{\@tempswatrue}{\@tempswafalse}\if@tempswa%
\else{%
\newline{}%
\strut%

View file

@ -159,7 +159,7 @@
\ifthenelse{\equal{#6}{}}{}{, #6}%
.\strut}%
\usebox{\cventryyearbox}}%
\ifx&#7&%
\ifblank{#7}{\@tempswatrue}{\@tempswafalse}\if@tempswa%
\else%
\vspace*{-4pt}%
\cvitem[#1]{}{\small#7}\fi}

View file

@ -138,7 +138,7 @@
\ifthenelse{\equal{#5}{}}{}{, #5}%
\ifthenelse{\equal{#6}{}}{}{, #6}%
\strut%
\ifx&#7&%
\ifblank{#7}{\@tempswatrue}{\@tempswafalse}\if@tempswa%
\else{\newline{}\begin{minipage}[t]{\linewidth}\small#7\end{minipage}}\fi}}
\@initializebox{\cvitemwithcommentbox}