Clean up newlines in code block