Skip to content

Extra space before 1st arg of a def #35

@fuzzypixelz

Description

@fuzzypixelz

Thanks for putting this together! It is certainly much more useful than https://github.com/nushell/nufmt.

def f [--arg1: number, --arg2: string] {}

As of 82966d7, the above example is formatted as:

def f [ --arg1: number --arg2: string] { }

(note the extra space between f [ and --arg1:).

On a semi-unrelated note: is the replacement of commas by spaces expected behavior? If so, I think it should be configurable as it deviates from the style used in https://nushell.sh and other official material.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions