Avoid storing and processing indent strings until final output

This should yield some speed improvement on huge files.  More than that it simplifies output code, especially when modifying output.