In notepad++ I have set "replace tab with 2 spaces".
When coding in python I copy-pasted some code from the web and it appeared indented correctly. But running the code resulted in indentation errors, which I solved in the end by removing all "visible" spaces at line beginnings and inserting the same amount of spaces again.
Could it be possible that scintilla based notepad++ does not show all special chars but displays them as spaces? Is there a setting to fix this?