summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/ffcode/ffcode.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/ffcode/ffcode.dtx')
-rw-r--r--macros/latex/contrib/ffcode/ffcode.dtx12
1 files changed, 9 insertions, 3 deletions
diff --git a/macros/latex/contrib/ffcode/ffcode.dtx b/macros/latex/contrib/ffcode/ffcode.dtx
index ffd57f6d02..06a7db10b6 100644
--- a/macros/latex/contrib/ffcode/ffcode.dtx
+++ b/macros/latex/contrib/ffcode/ffcode.dtx
@@ -50,7 +50,7 @@
%<package>\NeedsTeXFormat{LaTeX2e}
%<package>\ProvidesPackage{ffcode}
%<*package>
-[2024-01-10 0.9.0 Fixed Font Code]
+[2024-01-11 0.9.1 Fixed Font Code]
%</package>
%<*driver>
\documentclass{ltxdoc}
@@ -245,6 +245,10 @@
% \begin{macrocode}
\RequirePackage{xcolor}
\RequirePackage{listings}
+\makeatletter
+% See \href{https://tex.stackexchange.com/questions/706858}{the explanation}:
+\lst@AddToHook{Init}{\setlength{\lineskip}{0pt}}
+\makeatother
% \end{macrocode}
% \begin{macro}{ffcode}
@@ -261,8 +265,10 @@
\lstset{numbers=left,numbersep=5pt,numberstyle={\tiny\sffamily\color{gray}}}
\fi
\ifdefined\ff@nobars\else
- \lstset{frame=leftline,framerule=.3pt,rulecolor={\color{gray}}}
- \ifdefined\ff@nocn\else\fi
+ \lstset{frame=leftline,framerule=.4pt,rulecolor={\color{gray}}}
+ \ifdefined\ff@nocn\else
+ \lstset{firstnumber=last}
+ \fi
\lstset{#1}
}
{}