Skip to content

Commit

Permalink
Merge pull request #2242 from tomgg/issue1083
Browse files Browse the repository at this point in the history
fix #1083: Append a newline to `ipfs id` output.
  • Loading branch information
whyrusleeping committed Jan 26, 2016
2 parents 81b9607 + 7b71698 commit 081c6d9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion core/commands/dns.go
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ The resolver will give:
if !ok {
return nil, util.ErrCast()
}
return strings.NewReader(output.Path.String()), nil
return strings.NewReader(output.Path.String() + "\n"), nil
},
},
Type: ResolvedPath{},
Expand Down
1 change: 1 addition & 0 deletions core/commands/id.go
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ ipfs id supports the format option for output with the following keys:
if err != nil {
return nil, err
}
marshaled = append(marshaled, byte('\n'))
return bytes.NewReader(marshaled), nil
}
},
Expand Down

0 comments on commit 081c6d9

Please sign in to comment.