Skip to content

Depth limit seems to be off by one #174

Closed
@torkleyy

Description

@torkleyy

Currently, a depth limit of 1 means that nothing gets indented (same for 0). That seems wrong, as the limit should be the (inclusive) maximum depth.

This can be fixed by changing the pretty.indent < config.ident to a <= check.

@kvark Do you agree this is a bug?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions