Removed \n after code blocks so that no extra empty line will be printed.