Change `strip()` to `rstrip()` when processing commit msg lines

This way we can still reduce empty lines to '', and strip trailing
spaces, but preserve preceding spaces in non-empty lines.