Put all braces on their own line to conform to Phobos style.
Split up generator functions into a normal and a "pretty" version.

The Boolean "pretty_print" template parameter has been moved to a private internal function.