JuliaFormatter.jl
                                
                                 JuliaFormatter.jl copied to clipboard
                                
                                    JuliaFormatter.jl copied to clipboard
                            
                            
                            
                        Odd line breaking in YASStyle
julia> using JuliaFormatter
julia> str = raw"""
               throw(ExtraEquationsSystemException(
                   "The system is unbalanced. "
                   * "There are $n_highest_vars highest order derivative variables "
                   * "and $neqs equations.\n"
                   * error_title
                   * msg
               ))
       """; print(str)
        throw(ExtraEquationsSystemException(
            "The system is unbalanced. "
            * "There are $n_highest_vars highest order derivative variables "
            * "and $neqs equations.\n"
            * error_title
            * msg
        ))
julia> format_text(str, SciMLStyle()) |> print
throw(ExtraEquationsSystemException("The system is unbalanced. "
                                    *
                                    "There are $n_highest_vars highest order derivative variables "
                                    * "and $neqs equations.\n"
                                    * error_title
                                    * msg))
julia>
julia> format_text(str, YASStyle()) |> print
throw(ExtraEquationsSystemException("The system is unbalanced. "
                                    *
                                    "There are $n_highest_vars highest order derivative variables "
                                    * "and $neqs equations.\n"
                                    * error_title
                                    * msg))
could be viewed as odd but it's not a bug, that's how YASStyle breaks lines. Since SciMLStyle fallbacks to YASStyle it'll do this, you would have to change this in SciMLStyle for it to be different.
Yeah, I think this is fine. One can always change it manually.