Commit 3a7846fe authored by Mikio Hara's avatar Mikio Hara Committed by Brad Fitzpatrick

html: gofmt -w -s

Change-Id: Ic81b9ab72be34a95e677a1dd40e970f86109eefc
Reviewed-on: https://go-review.googlesource.com/111935
Run-TryBot: Mikio Hara <mikioh.mikioh@gmail.com>
TryBot-Result: Gobot Gobot <gobot@golang.org>
Reviewed-by: 's avatarBrad Fitzpatrick <bradfitz@golang.org>
parent d11bb6cd
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -589,20 +589,20 @@ func TestConvertNewlines(t *testing.T) { ...@@ -589,20 +589,20 @@ func TestConvertNewlines(t *testing.T) {
"Mac\rDOS\r\nUnix\n": "Mac\nDOS\nUnix\n", "Mac\rDOS\r\nUnix\n": "Mac\nDOS\nUnix\n",
"Unix\nMac\rDOS\r\n": "Unix\nMac\nDOS\n", "Unix\nMac\rDOS\r\n": "Unix\nMac\nDOS\n",
"DOS\r\nDOS\r\nDOS\r\n": "DOS\nDOS\nDOS\n", "DOS\r\nDOS\r\nDOS\r\n": "DOS\nDOS\nDOS\n",
"": "", "": "",
"\n": "\n", "\n": "\n",
"\n\r": "\n\n", "\n\r": "\n\n",
"\r": "\n", "\r": "\n",
"\r\n": "\n", "\r\n": "\n",
"\r\n\n": "\n\n", "\r\n\n": "\n\n",
"\r\n\r": "\n\n", "\r\n\r": "\n\n",
"\r\n\r\n": "\n\n", "\r\n\r\n": "\n\n",
"\r\r": "\n\n", "\r\r": "\n\n",
"\r\r\n": "\n\n", "\r\r\n": "\n\n",
"\r\r\n\n": "\n\n\n", "\r\r\n\n": "\n\n\n",
"\r\r\r\n": "\n\n\n", "\r\r\r\n": "\n\n\n",
"\r \n": "\n \n", "\r \n": "\n \n",
"xyz": "xyz", "xyz": "xyz",
} }
for in, want := range testCases { for in, want := range testCases {
if got := string(convertNewlines([]byte(in))); got != want { if got := string(convertNewlines([]byte(in))); got != want {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment