You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Previously, array indexing on the left-hand side of assignments could be
broken across lines, resulting in undesirable formatting like:
du[
i, j, 1] = alpha * expr
This commit adds a custom n_ref! implementation for SciMLStyle that detects
when a RefN (array reference) node is on the LHS of an assignment and prevents
it from being broken across lines. The fix ensures that assignments like:
du[i, j, 1] = long_expression
Keep the LHS intact while still allowing the RHS to break appropriately.
This addresses the issue seen in SciML/NonlinearSolve.jl#660 where array
assignments were being formatted in an aesthetically unpleasing way.
0 commit comments