style: formalize whitespace rules

These changes should not be controversial: they simply bring everything in line with the project's prevailing formatting.