Skip to content

Commit

Permalink
teams - change \n to <br>
Browse files Browse the repository at this point in the history
  • Loading branch information
MikaKerman committed Oct 10, 2024
1 parent 5f0e0c2 commit f82ae06
Showing 1 changed file with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -501,21 +501,21 @@ def _get_group_by_table_template(

if alert.test_failures:
rows = [alert.concise_name for alert in alert.test_failures]
text = "\n".join([f"&#x1F53A; {row}" for row in rows])
text = "<br>".join([f"&#x1F53A; {row}" for row in rows])
self.message_builder.addSection(
self._get_section("*Test failures*", f"{text}")
)

if alert.test_warnings:
rows = [alert.concise_name for alert in alert.test_warnings]
text = "\n".join([f"&#x26A0; {row}" for row in rows])
text = "<br>".join([f"&#x26A0; {row}" for row in rows])
self.message_builder.addSection(
self._get_section("*Test warnings*", f"{text}")
)

if alert.test_errors:
rows = [alert.concise_name for alert in alert.test_errors]
text = "\n".join([f"&#x2757; {row}" for row in rows])
text = "<br>".join([f"&#x2757; {row}" for row in rows])
self.message_builder.addSection(
self._get_section("*Test errors*", f"{text}")
)
Expand Down Expand Up @@ -557,28 +557,28 @@ def _get_all_in_one_template(self, alert: AllInOneAlert, *args, **kwargs):

if alert.model_errors:
rows = [alert.summary for alert in alert.model_errors]
text = "\n".join([f"&#x1F53A; {row}" for row in rows])
text = "<br>".join([f"&#x1F53A; {row}" for row in rows])
self.message_builder.addSection(
self._get_section("*Model errors*", f"{text}")
)

if alert.test_failures:
rows = [alert.summary for alert in alert.test_failures]
text = "\n".join([f"&#x1F53A; {row}" for row in rows])
text = "<br>".join([f"&#x1F53A; {row}" for row in rows])
self.message_builder.addSection(
self._get_section("*Test failures*", f"{text}")
)

if alert.test_warnings:
rows = [alert.summary for alert in alert.test_warnings]
text = "\n".join([f"&#x26A0; {row}" for row in rows])
text = "<br>".join([f"&#x26A0; {row}" for row in rows])
self.message_builder.addSection(
self._get_section("*Test warnings*", f"{text}")
)

if alert.test_errors:
rows = [alert.summary for alert in alert.test_errors]
text = "\n".join([f"&#x2757; {row}" for row in rows])
text = "<br>".join([f"&#x2757; {row}" for row in rows])
self.message_builder.addSection(
self._get_section("*Test errors*", f"{text}")
)
Expand Down

0 comments on commit f82ae06

Please sign in to comment.