Fix formatting of output blocks