From: Tomas Babej Date: Thu, 8 Jan 2015 03:09:30 +0000 (+0100) Subject: Task: Remove spaces when dumping the Task JSON X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/252fcc58df50a2d70aaaaf90f119d7e76da78ce3?ds=sidebyside;hp=--cc Task: Remove spaces when dumping the Task JSON --- 252fcc58df50a2d70aaaaf90f119d7e76da78ce3 diff --git a/tasklib/task.py b/tasklib/task.py index c34a104..4dab528 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -460,7 +460,8 @@ class Task(TaskResource): Exports current data contained in the Task as JSON """ - return json.dumps(self._data) + # We need to remove spaces for TW-1504, use custom separators + return json.dumps(self._data, separators=(',',':')) class TaskFilter(SerializingObject): """