Skip to content

Misaligned tranformation for logical operators and and or #174

@dhruvmanila

Description

@dhruvmanila

For the following config:

column_width = 80
line_endings = "Unix"
indent_type = "Spaces"
indent_width = 2
quote_style = "AutoPreferDouble"

The output for the following line:

local long_variable_name = some_condition("testing") and condition_was_true(true) or condition_was_false(false)

is:

local long_variable_name = some_condition("testing")
    and condition_was_true(true)
  or condition_was_false(false)

The and and or is not lined up. Is this the expected way or is it a bug?

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