I am using \lstinputlisting to present some of my code in a paper. As shown in this image: 
I intend to add empty lines between different parts of codes. However, I somehow want to reduce the height of these empty lines since they are occupying too much space.
Is there any way that I can control the height only for the empty lines by config the \lstset?

\documentclass{...}and ending with\end{document}. – Cragfelt Nov 30 '17 at 22:01