Skip to content

Commit

Permalink
Add newline in the end of sample
Browse files Browse the repository at this point in the history
  • Loading branch information
xalanq committed Apr 24, 2019
1 parent e0eee20 commit 6b0b311
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cf.go
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ Options:
-h --help
--version`

args, _ := docopt.Parse(usage, nil, true, "Codeforces Tool (cf) v0.3.4", false)
args, _ := docopt.Parse(usage, nil, true, "Codeforces Tool (cf) v0.3.5", false)
color.Output = ansi.NewAnsiStdout()
config.Init()
err := cmd.Eval(args)
Expand Down
2 changes: 1 addition & 1 deletion client/parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ func findSample(body []byte) (input [][]byte, output [][]byte, err error) {
filter := func(src []byte) []byte {
src = newline.ReplaceAll(src, []byte("\n"))
s := html.UnescapeString(string(src))
return []byte(strings.TrimSpace(s))
return []byte(strings.TrimSpace(s) + "\n")
}
for i := 0; i < len(a); i++ {
input = append(input, filter(a[i][1]))
Expand Down

0 comments on commit 6b0b311

Please sign in to comment.