LETS GOOOOOOOOOOOOOOOOOOOOOO🎉🎉🎉🎉!!!!!
After about 4 to 6 hours, I MADE TO FIX THE INDENTING GLITCHES!!!
Summary:
After trying 3 different algorithms, I reinspected the code of all my commits and noticed the true issue:
I was trying to make the same implementation to handle different behaviors, which caused the bug.
Basically Tab in editors had two different behaviors:
prin|t(“a”)
after tab:
prin |t(“a”)
the second behavior happens at the start of a line:
|print(“a”)
after tab:
|print("a")
I originally planned to use the same code to detect what the user wants, and it didn’t work well no matter how hard I tried until I separated the two behaviors into two snnipets completely, which just ended the bug that I tried fixing for hours.
I’ll never be lazy again….