Merge pull request #4 from naehrstoff/patch-1

Prevent single whitespace at the end of lines
This commit is contained in:
Nikolajus 2012-02-22 23:44:59 -08:00
commit 0f08d22cc2
1 changed files with 1 additions and 1 deletions

View File

@ -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))