Skip to content

Indents incorrectly for odd tab_size #94

@Quincunx271

Description

@Quincunx271

Beautify Ruby handles a tab-size of 2 very well, but when this is added to the preferences:

"tab_size": 3

Or any other odd number, for that matter, the indentation is completely wrong. As an example:

def test
   if false
      test do
         puts "incorrectly indented"
      end
   end
end

Becomes:

def test
    if false
      test do
          puts "incorrectly indented"
      end
    end
end

It doesn't indent each level at 3! It indents once at 4, then once at 2.

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