holgerbrandl / r4intellij

An integration of the R programming language into Intellij IDEA
BSD 2-Clause "Simplified" License
148 stars 28 forks source link

Formatting produces misleading indentation #211

Closed rillig closed 5 years ago

rillig commented 5 years ago
wrong.warning <- function(key, values)
{
  fields <- list()
  for (l in values)
  {
    value <- unlist(l)
    if (value != '')
    fields <- append(fields, 'yes')
    else
    fields <- append(fields, 'no')
  }
  fields
}

The above code has been formatted using Ctrl+Alt+L. The variable assignments in the if statement should be indented one more step to the right.

holgerbrandl commented 5 years ago

Was this fixed along with our PR?

rillig commented 5 years ago

Yes, it was. I just forgot to mention it in the PR.