Author Topic: Adaptive Formatting and R  (Read 497 times)

jporkkahtc

  • Senior Community Member
  • Posts: 1854
  • Hero Points: 179
  • Text
Adaptive Formatting and R
« on: August 28, 2018, 05:21:51 pm »
In a given R file with the attached stats, even though most of the file has 2 character indenting, when I hit tab I always get 4.
Actually, the file is all indented with 2 characters, but continued lines sometimes have more indenting.

I've attached some sample code.
Line 9 This line will indent by 4           
Line 10 This line will indent by 6  - unless you put a #Comment at the end of line

Actually, place cursor on line 136 and hit tab.
Now do the same for 9, 10, 11, etc

it keeps increasing



Clark

  • SlickEdit Team Member
  • Senior Community Member
  • *
  • Posts: 4937
  • Hero Points: 404
Re: Adaptive Formatting and R
« Reply #1 on: August 29, 2018, 12:36:02 am »
The file you posted is only 32 lines (no line 136).

While I couldn't reproduce the issue with the indent increasing in an odd way, I did notice a problem where the indent always indents one too many if the statement ends with a function call. That's fixed for beta 3.