Ensure PrettyFormatter outputs whole lines and flushed in between