cctools.indent with a few minor changes.