Improved OutputHelper->formatLines()