From 5307c85f862fb2e59f4d4a82d3c74eeb95a0449d Mon Sep 17 00:00:00 2001
From: Paul McCarthy <pauld.mccarthy@gmail.com>
Date: Thu, 18 May 2017 18:47:51 +0100
Subject: [PATCH] That new strval method removes leading/trailing whitespace

---
 fsl/data/image.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/fsl/data/image.py b/fsl/data/image.py
index 0b191d95c..1166cd53c 100644
--- a/fsl/data/image.py
+++ b/fsl/data/image.py
@@ -315,7 +315,7 @@ class Nifti(notifier.Notifier):
 
         val = val.decode('ascii')
 
-        return ''.join([c for c in val if c in string.printable])
+        return ''.join([c for c in val if c in string.printable]).strip()
 
 
     @property
-- 
GitLab