Latex listings package ignores last blank line in listing

Posted by Snej on Stack Overflow See other posts from Stack Overflow or by Snej
Published on 2010-04-06T17:40:42Z Indexed on 2010/04/06 17:43 UTC
Read the original article Hit count: 561

Filed under:
|

Hi: I use LaTeX listing package with \lstinputlisting to display text from an external file. The file contains a data format description with a blank line at the end. The package ignores the blank line. How can I show the blank line in a listing?

What it displays:

1 lorem ipsum...
2 more lorem ipsum
3 lorem lorem ipsum

What I want:

1 lorem ipsum
2 more lorem ipsum
3 lorem lorem ipsum
4

© Stack Overflow or respective owner

Related posts about latex

Related posts about listings