From 7cb75bbecd4dd6e56e107b68486cc9bb005f1333 Mon Sep 17 00:00:00 2001 From: Samuel Letellier-Duchesne Date: Sat, 15 May 2021 12:15:03 -0400 Subject: [PATCH] Fixes an issue where a new line could be created when printing to deck (#54) --- trnsystor/trnsysmodel.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/trnsystor/trnsysmodel.py b/trnsystor/trnsysmodel.py index b9d9c57..8b5ad5d 100644 --- a/trnsystor/trnsysmodel.py +++ b/trnsystor/trnsysmodel.py @@ -303,7 +303,7 @@ def _from_tag(cls, tag, **kwargs): Returns: TrnsysModel: The TRNSYS model. """ - name = kwargs.pop("name", tag.find("object").text) + name = kwargs.pop("name", tag.find("object").text).strip() meta = MetaData.from_tag(tag, **kwargs) model = cls(meta, name)