fix code block end line issue