Merge pull request #80 from tadashi-aikawa/master

Fix issue #62
This commit is contained in:
Terminal 2020-04-17 15:38:43 -04:00 committed by GitHub
commit 966d66eb02
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -290,7 +290,7 @@ class JqPrettyJson(sublime_plugin.WindowCommand):
out, err = p.communicate(unicode(raw_json).encode('utf-8'))
else:
out, err = p.communicate(bytes(raw_json, "utf-8"))
output = out.decode("UTF-8").strip()
output = out.decode("UTF-8").replace(os.linesep, "\n").strip()
if output:
view = self.window.new_file()
view.run_command("jq_pretty_json_out", {"jq_output": output})