NO

Author Topic: Quirky Indenting  (Read 2795 times)

Ben_pcc

  • Guest
Quirky Indenting
« on: July 14, 2007, 07:43:15 AM »
Hello Pelle,

I've been using your excellent app since 2003, and I really like the auto indenting that was added sometime between then and now (don't remember...).

I finally got about making a bug report, though. Sometimes indenting is wrong. In the attached zip, open the c file with your IDE. It's some function from a project that I cut up and censored ;->. But anyway, there's a comment near a continue statement, if you press enter after it the indentation is one level off. It's more clear if you look in the file. My indentation settings are included too, though it likely doesn't matter.

At the very end of the file you'll find another little annoyance, but it may be intended, I don't see why but ok.

Thanks again for an excellent piece of freeware. I prefer it over MSVC!!!

Offline Pelle

  • Administrator
  • Member
  • *****
  • Posts: 2266
    • http://www.smorgasbordet.com
Re: Quirky Indenting
« Reply #1 on: July 15, 2007, 01:23:42 PM »
Hello, and thanks.

Yes, I got the same behavior here. None of the two examples should act like this. I doubt the 'smart' indenting will ever be 100% correct, since there are too many variables to consider, but I will *try* and fix this...
/Pelle

Ben_pcc

  • Guest
Re: Quirky Indenting
« Reply #2 on: July 15, 2007, 07:28:01 PM »
Great, thanks!

For reference, there is a neat notepad replacement called notepad2:

http://www.flos-freeware.ch/notepad2.html

It indents properly and is open source.