[elbe-devel] [PATCH 4/7] elbepack: treeutils: strip whitespace from tostring()

Thomas Weißschuh thomas.weissschuh at linutronix.de
Wed Jul 24 10:01:32 CEST 2024


Surrounding whitespace is not very useful, remove it.

Signed-off-by: Thomas Weißschuh <thomas.weissschuh at linutronix.de>
---
 elbepack/treeutils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/elbepack/treeutils.py b/elbepack/treeutils.py
index 966d450be1e3..9a36be568346 100644
--- a/elbepack/treeutils.py
+++ b/elbepack/treeutils.py
@@ -100,7 +100,7 @@ class ebase:
         self.et.append(copy.deepcopy(other.et))
 
     def tostring(self):
-        return tostring(self.et, encoding=str)
+        return tostring(self.et, encoding=str).strip()
 
 
 class elem(ebase):

-- 
2.45.2



More information about the elbe-devel mailing list