remove spaces in code blocks