-
Notifications
You must be signed in to change notification settings - Fork 374
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
write: pretty print section only if it is not the last one (#321)
Co-authored-by: Joe Chen <[email protected]>
- Loading branch information
1 parent
386cf30
commit 842b9a9
Showing
6 changed files
with
9 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -250,7 +250,6 @@ func TestInsensitiveLoad(t *testing.T) { | |
require.NoError(t, err) | ||
assert.Equal(t, `[author] | ||
e-mail = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -305,7 +304,6 @@ func TestLoadSources(t *testing.T) { | |
require.NoError(t, err) | ||
assert.Equal(t, `[author] | ||
e-mail = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -333,7 +331,6 @@ e-mail = [email protected] | |
require.NoError(t, err) | ||
assert.Equal(t, `[author] | ||
E-MAIL = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -361,7 +358,6 @@ E-MAIL = [email protected] | |
require.NoError(t, err) | ||
assert.Equal(t, `[author] | ||
e-mail = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -517,7 +513,6 @@ fetch = +refs/heads/*:refs/remotes/origin/*`)) | |
url = https://github.com/Antergone/test1.git | ||
url = https://github.com/Antergone/test2.git | ||
fetch = +refs/heads/*:refs/remotes/origin/* | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -822,7 +817,8 @@ my lesson state data – 1111111111111111111000000000000000001110000 | |
111111111111111111100000000000111000000000 – end my lesson state data | ||
[COMMENTS] | ||
<1><L.Slide#2> This slide has the fuel listed in the wrong units <e.1>`)) | ||
<1><L.Slide#2> This slide has the fuel listed in the wrong units <e.1> | ||
`)) | ||
require.NoError(t, err) | ||
require.NotNil(t, f) | ||
|
||
|
@@ -935,7 +931,6 @@ GITHUB = U;n;k;n;w;o;n | |
require.NoError(t, err) | ||
assert.Equal(t, `[author] | ||
e-mail = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -1070,7 +1065,6 @@ fetch = +refs/heads/*:refs/remotes/origin/*`)) | |
url = https://github.com/Antergone/test1.git | ||
url = https://github.com/Antergone/test2.git | ||
fetch = +refs/heads/*:refs/remotes/origin/* | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -1261,7 +1255,8 @@ my lesson state data – 1111111111111111111000000000000000001110000 | |
111111111111111111100000000000111000000000 – end my lesson state data | ||
[COMMENTS] | ||
<1><L.Slide#2> This slide has the fuel listed in the wrong units <e.1>`)) | ||
<1><L.Slide#2> This slide has the fuel listed in the wrong units <e.1> | ||
`)) | ||
require.NoError(t, err) | ||
require.NotNil(t, f) | ||
|
||
|
@@ -1413,7 +1408,6 @@ GITHUB = U;n;k;n;w;o;n | |
require.NoError(t, err) | ||
assert.Equal(t, `[author] | ||
E-MAIL = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -1434,7 +1428,6 @@ E-MAIL = [email protected] | |
require.NoError(t, err) | ||
assert.Equal(t, `[author] | ||
E-MAIL = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
@@ -1451,7 +1444,6 @@ E-MAIL = [email protected] | |
[author] | ||
E-MAIL = [email protected] | ||
`, | ||
buf.String(), | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -604,7 +604,6 @@ region = us-west-2 | |
s3 = | ||
max_concurrent_requests=10 | ||
max_queue_size=1000 | ||
`, | ||
buf.String(), | ||
) | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters