Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Fixing indentation issues.
#2
First, I would make sure all of my editors are set to the same indentation settings. Four spaces, tabs, whatever. Just pick one and make sure all of the editors are set the same.

Second, the way to fix this is to get an editor that shows you the invisible characters. Then go through the code looking for discrepancies. Use find as well. If you are using tabs, search for double spaces or return and space. If you are using spaces, search for tabs.

Third, debug this. Think up a bunch of short functions, each using a loop or a conditional. Then write them to the same file, using a different editor for each function. Then, go back to an editor that can show the invisible characters, and look for discrepancies.
Craig "Ichabod" O'Brien - xenomind.com
I wish you happiness.
Recommended Tutorials: BBCode, functions, classes, text adventures
Reply


Messages In This Thread
Fixing indentation issues. - by MuntyScruntfundle - Jan-31-2019, 04:50 PM
RE: Fixing indentation issues. - by ichabod801 - Jan-31-2019, 05:04 PM
RE: Fixing indentation issues. - by Larz60+ - Jan-31-2019, 05:40 PM
RE: Fixing indentation issues. - by wavic - Feb-02-2019, 01:19 PM
RE: Fixing indentation issues. - by metulburr - Feb-02-2019, 01:21 PM
RE: Fixing indentation issues. - by wavic - Feb-02-2019, 01:36 PM
RE: Fixing indentation issues. - by ichabod801 - Feb-02-2019, 04:20 PM
RE: Fixing indentation issues. - by snippsat - Feb-02-2019, 05:55 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  (python) Can i get some help fixing a English to Morse translator? Pls AlexPython 7 1,674 Sep-12-2022, 02:55 AM
Last Post: AlexPython
  Invalid syntax error - need help fixing calgk01 3 3,359 Feb-23-2021, 08:41 PM
Last Post: nilamo
  Fixing a code error Twoshawns 5 2,822 May-14-2020, 11:56 AM
Last Post: Twoshawns
  Help Fixing Code kianwalters05 5 4,019 May-12-2020, 12:13 PM
Last Post: kianwalters05
  Fixing "PermissionError: [Errno 13] Permission denied" puredata 17 73,086 Mar-09-2020, 03:20 PM
Last Post: syssy
  Fixing the code khanhcao 2 96,244 Feb-06-2020, 07:24 AM
Last Post: buran
  Fixing a problem with file.io ThickTac 2 2,677 Mar-13-2019, 10:13 PM
Last Post: ThickTac

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020