I have some extra vertical space in my listings/minted code snippet that I can't figure out how to get rid of (especially the bottom). The code originally came from this answer. I have read the documentation, but can't seem to figure out where the padding is coming from (tcolorbox, listings, minted?)
How can I remove this padding, or at least make it even?
\documentclass{article}
\usepackage[T1]{fontenc}
\usepackage{listings}
\usepackage{minted}
\usepackage{xcolor}
\usepackage{tcolorbox}
\tcbuselibrary{listings, minted, skins}
\tcbset{listing engine=minted}
\newtcblisting{mlisting}{listing only, minted language=text, minted style=paraiso-dark,
colback=bg, enhanced, frame hidden, minted options={
fontsize=\footnotesize, breaklines, formatcom=\color{white}}}
\definecolor{inline}{RGB}{187,57,82}
\definecolor{bg}{RGB}{22,43,58}
\setminted[java]{bgcolor=bg, fontfamily=fdm, fontsize=\footnotesize}
\begin{document}
\begin{mlisting}
some text
\end{mlisting}
\end{document}
formatcom=\color{white}
fixes the extra padding. For your example,colupper=white
sets text color to white and won't cause extra padding.