Word wrap long lines in Latex verbatim blocks
literalinclude blocks are nicely displayed in PDF output. But if a file contains a long line it just overflows, gets cut off and is not readable a all.
Apparently there's nothing I can do as a user (with e.g. additional latex preamble) as Sphinx creates verbatim blocks which do not suport word wrapping.
The recommended Latex solution seems to be using some other package instead(like
minted). Could Sphinx get an option to switch to some other package?
Or is there some other trick to get long lines to wrap in code blocks in PDFs?