Most of this file is indented with tabs but parts are indented with spaces. Closes #1770.
Closes #1759.