1
0
mirror of https://github.com/ericchiang/pup synced 2025-01-14 17:50:59 +00:00

Merge pull request #63 from ericchiang/json_nl

print newline after content when using the JSON output option
This commit is contained in:
Eric Chiang 2016-04-25 08:17:42 -07:00
commit e76307d03d

View File

@ -323,7 +323,7 @@ func (j JSONDisplayer) Display(nodes []*html.Node) {
if err != nil {
panic("Could not jsonify nodes")
}
fmt.Printf("%s", data)
fmt.Printf("%s\n", data)
}
// Print the number of features returned