Indentation of continuation lines incorrect #17

Closed
now opened this Issue Oct 28, 2010 · 2 comments

Comments

Projects
None yet
3 participants
Member

now commented Oct 28, 2010

a and
  (b and
   c) and
   X

X is indented one character too far. This is because the code at the start of 3.4 returns the previous line’s indent, not the MSLs indent + &sw. This is because it prioritizes

a and
   b and
   c

over

a and
   b and
  c

The code should either take care to deal with parentheses messing up the indentation levels or simply indent two spaces and ignore the case where some fool has added more space than mandated by the indentation script.

jaymzh commented Jul 2, 2014

Any chance of getting this fixed? This is painful.

Member

AndrewRadev commented Jul 14, 2014

For now, the issue has been fixed by @odcinek in #219, but as I mention there, I'm kind of worried about regressions. If you notice anything that seems related, please report.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment