\lstset{%
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=b, % sets the caption-position to bottom
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)
\lstset{%
breakatwhitespace=false, % sets if automatic breaks should only happen at whitespace
breaklines=true, % sets automatic line breaking
captionpos=b, % sets the caption-position to bottom
keepspaces=true, % keeps spaces in text, useful for keeping indentation of code (possibly needs columns=flexible)