Add a ``dedent`` utility which allows writing indented triple-quote strings for readability.
Adjust the expectation for formatting such that it should be newline terminated.  Replace formatter implementations with ``dedent``-based templates.