From 9bfb0acaeac5ebfc79ffdf18cc96857fade9a37e Mon Sep 17 00:00:00 2001 From: Tomas Babej Date: Sun, 22 Mar 2015 15:04:35 +0100 Subject: [PATCH] TaskWarrior: Only strip trailing whitespace from output Leading whitespace can be used to center a heading in certain reports. --- tasklib/task.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.2