3

Possible Duplicate:
How to deal with very long lines that do not contain spaces?

When I use the listings package with breaklines, it doesn't seem to break lines properly if there is no whitespace. For example:

\documentclass{article}
\usepackage{listings}
\lstset{breaklines=true, breakatwhitespace=false}
\begin{document}
\begin{lstlisting}[frame=single]
blah blah
blah blah
jjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjjj
\end{lstlisting}
\end{document}

This gets rendered like this:

enter image description here

Is there some way to get long lines like this to break? I thought setting breakatwhitespace to false would fix this.

marked as duplicate by Werner, Peter Grill, user11232, Claudio Fiandrino, Tom Bombadil Sep 9 '12 at 12:27

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.