Merge remote-tracking branch 'fix-oslinesep/master'

This commit is contained in:
TheSecEng 2020-04-14 16:42:11 -04:00
commit e5f59482c0
No known key found for this signature in database
GPG Key ID: A7C3BA459E8C5C4E
1 changed files with 1 additions and 1 deletions

View File

@ -320,7 +320,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})