CLN: Fix many indentation errors found in #6643.

Changes should only affect whitespace.

closes #6643

should this be ``elif``?