delete last newline in code blocks