It's totally fine to make a mistake, just fix them when you find them. Some text editors have an option to display whitespace graphically, btw, and there's command line tools to fix whitespace as well (although it may be preferable to just keep it consistent for commits like this and commit a global consistency fix separately).