When we coding and can found there has some blank lines, so we need to remove them but just keep one blank line.
So here has some solutions