Skip to content

JuliaFormatter v2.3.0 does not "converge" for some line continued expressions with anonymous functions #974

@haakon-e

Description

@haakon-e

If I format the following Julia code using JuliaFormatter v2.3.0, one space is removed from the second line every time I apply the formatter:

error_str = Δa -> "Change in activity must be within the valid range: \
                    Δa ∈ [1, 2], but Δa = $Δa"

Consequently, JuliaFormatter (e.g. set up as a CI job) will request changes every time until there are no spaces left and the code looks like:

error_str = Δa -> "Change in activity must be within the valid range: \
Δa ∈ [1, 2], but Δa = $Δa"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions