I cannot get listings package to break lines with any of the methods described in previous questions: Listings package does not break, http://stackoverflow.com/questions/981020/how-to-force-line-wrapping-in-listings-package
This problem appears only when using mwrep document class. In report or article line-breaks work just fine.
Here is my MWE:
\documentclass{mwrep}
\usepackage{listings}
\begin{document}
\begin{lstlisting}[ breaklines=true ]
Some text with a long line that needs to be broken but is not with mwrep documentclass. What should I do about it?
\end{lstlisting}
\end{document}
