spr
spr copied to clipboard
Spaces are stripped from commit bodies
A Git commit with this message:
This is a test:
A B C
...results in a PR with this body:
This is a test:
A B C
@josephschmitt : looks like this is caused by TrimSpace from 1606b8ff251c2931:
func formatBody(commit git.Commit, stack []*github.PullRequest) string {
+ body := wrapInMarkdown(commit.Body)
+
if len(stack) <= 1 {
- return wrapInMarkdown(commit.Body)
+ return strings.TrimSpace(body)
+ }
I also just got this effect.
In git log
:

In GitHub UI:
