Skip to content

Commit

Permalink
Merge pull request #159 from YousefEZ/fix-strip
Browse files Browse the repository at this point in the history
🐛  Fix strip content issue
  • Loading branch information
YousefEZ authored Aug 28, 2023
2 parents 7418112 + c2578c3 commit 31dca8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qalib/translators/xml.py
Original file line number Diff line number Diff line change
Expand Up @@ -220,7 +220,7 @@ def deserialize_message(
lambda raw_tree: list(map(self._render_embed, raw_tree)),
),
view=apply(get_element(message_tree, "view"), self._render_view, callables, events),
content="".join(filter_tabs(get_text(message_tree, "content")))
content=" ".join(filter_tabs(get_text(message_tree, "content")).split("\n"))
if apply(get_element(message_tree, "content"),
lambda element: self.get_attribute(element, "strip")) == "true"
else filter_tabs(get_text(message_tree, "content")),
Expand Down

0 comments on commit 31dca8f

Please sign in to comment.