Correctly detect any formatting changes.

Fixes #6.