newline isssue

This commit is contained in:
TheSecEng 2020-04-26 15:10:50 -04:00
parent 35e6280133
commit 5220810676
No known key found for this signature in database
GPG Key ID: A7C3BA459E8C5C4E
1 changed files with 1 additions and 0 deletions

View File

@ -409,6 +409,7 @@ class JqQueryPrettyJson(sublime_plugin.WindowCommand):
PREVIOUS_CONTENT[0] = raw_json PREVIOUS_CONTENT[0] = raw_json
if PREVIOUS_CONTENT[1] == "": if PREVIOUS_CONTENT[1] == "":
PREVIOUS_CONTENT[1] = raw_json PREVIOUS_CONTENT[1] = raw_json
out, err = p.communicate(bytes(raw_json, "UTF-8")) out, err = p.communicate(bytes(raw_json, "UTF-8"))
output = out.decode("UTF-8").replace(os.linesep, "\n").strip() output = out.decode("UTF-8").replace(os.linesep, "\n").strip()
errors = err.decode("UTF-8").replace(os.linesep, "\n").strip() errors = err.decode("UTF-8").replace(os.linesep, "\n").strip()