From 51fd2c90b70bf62ee11ddd6a63a349aa739efd2e Mon Sep 17 00:00:00 2001 From: loredo Date: Mon, 30 Jan 2017 01:37:46 +0000 Subject: [PATCH] 75_MSG: fix for Sonos Title names in message body text git-svn-id: https://svn.fhem.de/fhem/trunk@13281 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/FHEM/75_MSG.pm | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/fhem/FHEM/75_MSG.pm b/fhem/FHEM/75_MSG.pm index a9f12fb90..9d40beca2 100755 --- a/fhem/FHEM/75_MSG.pm +++ b/fhem/FHEM/75_MSG.pm @@ -1811,15 +1811,15 @@ m/^(absent|disappeared|unauthorized|disconnected|unreachable)$/i # correct message format # + # Remove Sonos Speak commands + $loopMsg =~ s/(\s*\|\w+\|\s*)/\\n\\n/gi + if ( $type[$i] ne "audio" ); + # Replace new line with HTML break # for e-mails $loopMsg =~ s/\n/
\n/gi if ( $type[$i] eq "mail" ); - # Remove Sonos Speak commands - $loopMsg =~ s/((|(\d+)| )\|\w+\|( |))/\n\n/gi - if ( $type[$i] ne "audio" ); - # use command from device, global or internal default my $defCmd = ""; $defCmd =