Fix indentation: switch to four spaces. (GH6643)
Merge pull request #6646 from dsm054/fix_indentation_errors

CLN: Fix many indentation errors found in #6643.