From: Tomas Babej Date: Sun, 22 Mar 2015 14:04:35 +0000 (+0100) Subject: TaskWarrior: Only strip trailing whitespace from output X-Git-Url: https://git.madduck.net/etc/taskwarrior.git/commitdiff_plain/9bfb0acaeac5ebfc79ffdf18cc96857fade9a37e?ds=inline;hp=-c TaskWarrior: Only strip trailing whitespace from output Leading whitespace can be used to center a heading in certain reports. --- 9bfb0acaeac5ebfc79ffdf18cc96857fade9a37e diff --git a/tasklib/task.py b/tasklib/task.py index b9103d1..dd90a28 100644 --- a/tasklib/task.py +++ b/tasklib/task.py @@ -912,7 +912,7 @@ class TaskWarrior(object): else: error_msg = stdout.strip() raise TaskWarriorException(error_msg) - return stdout.strip().split('\n') + return stdout.rstrip().split('\n') def enforce_recurrence(self): # Run arbitrary report command which will trigger generation