Closed j-tai closed 1 year ago
Are you using the latest version of fvextra
? It is used internally for line breaking, and the last release improved these sorts of situations. Your example works for me with the latest minted
and fvextra
.
Looks like that's it. Thanks!
minted
could add a soft requirement on the minimum release date of fvextra
(\RequirePackage{fvextra}[2022-11-30]
), so users using outdated fvextra
relative to minted
will receive a warning. Using \IfPackageAtLeast{<pkg>}{<date>}{<true code>}{<false code>}
could even issue an error.
The
breakautoindent
option doesn't work when the language isc
,cpp
,json
,yaml
, and possibly others. It works fine for other languages such astext
,java
,kotlin
,javascript
,typescript
,python
,perl
,html
, andlatex
.Reproduce:
Although I set
breakautoindent
in the preamble's\setminted
, the feature does not have any effect.I expected it to look like this (ignore the different colors):
minted version: 2.7 from master branch Log file: minted-breakautoindent.log