Use a single method for pretty-print formatting.