Fix formatting of solution output.