Fix multiple bugs in the comment parser of the commit command.
Allow blank lines in comments.