Merge pull request #4 from naehrstoff/patch-1
Prevent single whitespace at the end of lines
This commit is contained in:
commit
0f08d22cc2
|
@ -18,6 +18,6 @@ class PrettyjsonCommand(sublime_plugin.TextCommand):
|
|||
|
||||
try:
|
||||
obj = json.loads(self.view.substr(selection))
|
||||
self.view.replace(edit, selection, json.dumps(obj, indent=s.get("indent_size", 4), ensure_ascii=False, sort_keys=s.get("sort_keys", True)))
|
||||
self.view.replace(edit, selection, json.dumps(obj, indent=s.get("indent_size", 4), ensure_ascii=False, sort_keys=s.get("sort_keys", True), separators=(',', ': ')))
|
||||
except Exception, e:
|
||||
sublime.status_message(str(e))
|
||||
|
|
Loading…
Reference in New Issue