- properly handle indentation and line termination of multi-line command output - strip off control characters - replace tabs with spaces to maintain column alignment - clean up documentation