From 3f2d2a22af71e89a8337443210db8c0f3f316b79 Mon Sep 17 00:00:00 2001 From: itoussies <65223458+itoussies@users.noreply.github.com> Date: Wed, 10 Sep 2025 10:11:06 +0200 Subject: [PATCH] feat(notification::microsoft::office365::teams): Mode(alert) - Allow to wrap long text (#5739) Refs: CTOR-1905 --- .../microsoft/office365/teams/mode/alert.pm | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/src/notification/microsoft/office365/teams/mode/alert.pm b/src/notification/microsoft/office365/teams/mode/alert.pm index 93899ad48..e375b728d 100644 --- a/src/notification/microsoft/office365/teams/mode/alert.pm +++ b/src/notification/microsoft/office365/teams/mode/alert.pm @@ -363,7 +363,8 @@ sub build_workflow_message { "size" => "Large", "weight" => "Bolder", "style" => "heading", - "color" => $themecolor + "color" => $themecolor, + "wrap" => "true" }; push @{$self->{body}}, { type => "TextBlock", @@ -371,7 +372,8 @@ sub build_workflow_message { "size" => "Medium", "weight" => "Bolder", "style" => "heading", - "color" => $themecolor + "color" => $themecolor, + "wrap" => "true" }; if (defined($self->{option_results}->{$resource_type . '_output'}) && $self->{option_results}->{$resource_type . '_output'} ne '') { @@ -392,9 +394,9 @@ sub build_workflow_message { if (defined($self->{option_results}->{extra_info}) && $self->{option_results}->{extra_info} !~ m/^\/\/$/) { if ($self->{option_results}->{extra_info} =~ m/^(.*)\/\/(.*)$/) { push @{$self->{body}}, { - type => "TextBlock", - text => "Additional Information: \n" . sprintf($self->{option_results}->{extra_info_format}, $1, $2), - wrap => "true" + type => "TextBlock", + text => "Additional Information: \n" . sprintf($self->{option_results}->{extra_info_format}, $1, $2), + wrap => "true" }; } }