Fix git_commit_summary to convert newlines to spaces even after whitespace. Collapse spaces around newlines for the summary.