Added clipboard formatter to remove excess indentation on copied code.

Modified unit tests to match changes.