There's probably a mix of spaces and tabs. If you select `view -> indendation` you will see options to convert the document entirely to spaces or tabs, and how wide a tab stop should be. I prefer tabs, personally, but most other people prefer spaces, so I use spaces for indentation and set the tab size to be 2 spaces. Try that out and see how it goes.