diff --git a/src/styles/sciml/pretty.jl b/src/styles/sciml/pretty.jl index 1bf6d2b62..4ed5069cd 100644 --- a/src/styles/sciml/pretty.jl +++ b/src/styles/sciml/pretty.jl @@ -85,7 +85,11 @@ for f in [ for T in Ts @eval function $f(ss::SciMLStyle, cst::$T, s::State; kwargs...) style = getstyle(ss) - $f(YASStyle(style), cst, s; kwargs...) + if s.opts.yas_style_nesting + $f(YASStyle(style), cst, s) + else + $f(DefaultStyle(style), cst, s) + end end end end