diff --git a/src/preamble/packages/minted.tex b/src/preamble/packages/minted.tex
index 63b57dd4ff1c473a2cdfa2445544cf6aa15aa29c..ded4458568b3c702bf9885698fbb591f79b30b46 100644
--- a/src/preamble/packages/minted.tex
+++ b/src/preamble/packages/minted.tex
@@ -8,7 +8,7 @@
 \usepackage[
 %chapter, % uncomment if listings to be counted by chapter
 ]{minted}
-\setminted{linenos,breaklines,bgcolor=bg,breakanywheresymbolpre={}}
+\setminted{linenos,breaklines,bgcolor=bg,breakanywheresymbolpre={},breakaftersymbolpre={},breakbeforesymbolpre={},autogobble}
 \setmintedinline{bgcolor={}}
 \renewcommand{\theFancyVerbLine}{%
 	\textcolor[rgb]{0.5,0.5,1.0}{%
@@ -23,4 +23,4 @@
 %	\let\listing=\IWANTTHISlisting
 %	\Crefname{listing}{\listingscaption}{Listati}
 %}
-%\renewcommand{\listingscaption}{Listato} % uncomment if you use minted inside listing env. See above.
\ No newline at end of file
+%\renewcommand{\listingscaption}{Listato} % uncomment if you use minted inside listing env. See above.