1

When I'm including a source file, by way of \lstinputlistings{file/path/to/file}

However, This results in the following below:

image

Why is the first line not being formatted correctly? And how do i fix it? I've tried adding newlines before but that has no effect.

egreg
  • 1,121,712
LordAro
  • 161

1 Answers1

0

Just give

\noindent\lstinputlisting{file/path/to/file}

a try. It suppresses the paragraph indentation after beginning a new line.

MrD
  • 2,716