Skip to content

Commit

Permalink
Fixes an issue where a new line could be created when printing to deck (
Browse files Browse the repository at this point in the history
  • Loading branch information
Samuel Letellier-Duchesne authored May 15, 2021
1 parent 7c1fe0b commit 7cb75bb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trnsystor/trnsysmodel.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 7cb75bb

Please sign in to comment.