Skip to content

always_use_return extra indentation on first format #428

Description

@domluna
julia> s
"function foo()\n    a && b && c && d\nend\n"

julia> s |> print
function foo()
    a && b && c && d
end

julia> format_text(s, always_use_return=true, margin=1) |> print
function foo()
    return a &&
               b &&
               c &&
               d
end

# `s0` is the above output saved
julia> format_text(s0, always_use_return=true, margin=1) |> print
function foo()
    return a &&
           b &&
           c &&
           d
end

julia>

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Fields

    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