diff --git a/src/github.com/matrix-org/rageshake/submit.go b/src/github.com/matrix-org/rageshake/submit.go index 72efc30..20e9810 100644 --- a/src/github.com/matrix-org/rageshake/submit.go +++ b/src/github.com/matrix-org/rageshake/submit.go @@ -496,7 +496,7 @@ func buildGithubIssueRequest(p parsedPayload, listingURL string) github.IssueReq } var bodyBuf bytes.Buffer - fmt.Fprintf(&bodyBuf, "User message:\n```\n%s\n```\n", p.UserText) + fmt.Fprintf(&bodyBuf, "User message:\n\n%s\n\n", p.UserText) for k, v := range p.Data { fmt.Fprintf(&bodyBuf, "%s: `%s`\n", k, v) } diff --git a/src/github.com/matrix-org/rageshake/submit_test.go b/src/github.com/matrix-org/rageshake/submit_test.go index 2457954..2adb155 100644 --- a/src/github.com/matrix-org/rageshake/submit_test.go +++ b/src/github.com/matrix-org/rageshake/submit_test.go @@ -395,7 +395,7 @@ riot-web if *issueReq.Title != "test words." { t.Errorf("Title: got %s, want %s", *issueReq.Title, "test words.") } - expectedBody := "User message:\n```\n\ntest words.\n```" + expectedBody := "User message:\n\n\ntest words.\n" if !strings.HasPrefix(*issueReq.Body, expectedBody) { t.Errorf("Body: got %s, want %s", *issueReq.Body, expectedBody) } @@ -421,7 +421,7 @@ Content-Disposition: form-data; name="text" if *issueReq.Title != "Untitled report" { t.Errorf("Title: got %s, want %s", *issueReq.Title, "Untitled report") } - expectedBody := "User message:\n```\n\n```" + expectedBody := "User message:\n\n\n" if !strings.HasPrefix(*issueReq.Body, expectedBody) { t.Errorf("Body: got %s, want %s", *issueReq.Body, expectedBody) }