diff --git a/CHANGELOG b/CHANGELOG index 8ff4448..11eb051 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -26,6 +26,7 @@ version 2.?.? (29 Jun 2023) - casual style: make the head options 'alternate', 'details' and 'nodetails' available to the user. (previously they were hidden). - Setting \listitemsymbolspace allows custom spacing between list symbol and text item (for \cvlistitem and \cvlistdoubleitem). - Introducing \cvtripleitem command for items in three columns. Closing feature request #174. +- Fixed wrong cvlistitem vspace caused by multiline section titles in fancy style (#69). version 2.3.1 (21 Feb 2022) - Fix duplicate GitLab icon (#105). diff --git a/moderncvbodyv.sty b/moderncvbodyv.sty index 418925b..6ddc67e 100644 --- a/moderncvbodyv.sty +++ b/moderncvbodyv.sty @@ -77,7 +77,8 @@ \addvspace{2.5ex}% \phantomsection{}% reset the anchor for hyperrefs \addcontentsline{toc}{section}{#2}% - \noindent\rlap{\@cvitem{\raggedleft\sectionstyle{#2}}{}}% + % minipage for correct spacing with multiline sections #69 + \noindent\rlap{\@cvitem{\begin{minipage}[t][1ex]{\hintscolumnwidth}\raggedleft\sectionstyle{#2}\end{minipage}}{}}% \nobreak\@afterheading\@aftersectiontrue\ignorespaces} %\@initializeif{\if@aftersubsection}\@aftersubsectionfalse% @@ -88,7 +89,8 @@ \par\ignorespaces\fi% \phantomsection{}% reset the anchor for hyperrefs \addcontentsline{toc}{subsection}{#2}% - \noindent\rlap{\@cvitem{\if@aftersection\else\@moderncvstrut{4pt}{24pt}\fi\raggedleft\subsectionstyle{#2}}{}}% + % minipage for correct spacing with multiline subsections #69 + \noindent\rlap{\@cvitem{\begin{minipage}[t][1ex]{\hintscolumnwidth}\if@aftersection\else\@moderncvstrut{4pt}{24pt}\fi\raggedleft\subsectionstyle{#2}\end{minipage}}{}}% \nobreak\@afterheading\@aftersectiontrue\ignorespaces} \renewcommand*{\cvitem}[3][.5ex]{%