75_MSG: only replace newline for e-mails
git-svn-id: https://svn.fhem.de/fhem/trunk@13208 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
@@ -1806,10 +1806,15 @@ m/^(absent|disappeared|unauthorized|disconnected|unreachable)$/i
|
|||||||
|
|
||||||
# correct message format
|
# correct message format
|
||||||
#
|
#
|
||||||
$loopMsg =~ s/\n/<br \/>/gi;
|
|
||||||
|
# Replace new line with HTML break
|
||||||
|
# for e-mails
|
||||||
|
$loopMsg =~ s/\n/<br \/>\n/gi
|
||||||
|
if ( $type[$i] eq "mail" );
|
||||||
|
|
||||||
|
# Remove Sonos Speak commands
|
||||||
$loopMsg =~ s/((|(\d+)| )\|\w+\|( |))/\n\n/gi
|
$loopMsg =~ s/((|(\d+)| )\|\w+\|( |))/\n\n/gi
|
||||||
if ( $type[$i] ne "audio" )
|
if ( $type[$i] ne "audio" );
|
||||||
; # Remove Sonos Speak commands
|
|
||||||
|
|
||||||
# use command from device, global or internal default
|
# use command from device, global or internal default
|
||||||
my $defCmd = "";
|
my $defCmd = "";
|
||||||
|
|||||||
Reference in New Issue
Block a user