fix bug: one new line after last line of code blocks