Replace string parameter to split method in HTML template with a regex

This should now properly split the commits in new lines.