I'm writing a document using minted. I installed Python, pygmentize, everything works great. But there is a behaviour I don't understand. I want to break the text inside the minted environment at the character '|'. When I try to do it at
\begin{minted}[breaklines, breakafter=|]{python}
some_string = 'SomeTextThat|GoesOnAndOnForSoLong|ThatItCouldNeverFitOnOneLine'
\end{minted}
LaTeX breaks the line right after the second |. But with this piece of code instead
\begin{minted}[breaklines, breakafter=|]{bash}
tail -n 39 $target | awk '{print($NF" "$0)}' | sort -g -t@ -k2 | cut -f2- -d' ' > /tmp/\ /"$NEWFILE" #@15
\end{minted}
it doesn't work, breaking the line after the last space before going out of the box.
Where do I go wrong?