fix pretty-printing of code blocks