Code: Select all
\makeatletter\renewcommand{\sectionlinesformat}[4]{%
\Ifstr{#1}{section}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{0.8pt}%
}%
}{%
\Ifstr{#1}{subsection}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{.8pt}%
}%
}{%
\Ifstr{#1}{subsubsection}{%
\parbox[t]{\linewidth}{%
\raggedsection\@hangfrom{\hskip #2#3}{#4}\par%
\vspace*{-1\ht\strutbox}\rule{\linewidth}{.8pt}%
}%
}{%
\@hangfrom{\hskip #2#3}{#4}}%
}}}%
\makeatother