diff --git a/fhem/CHANGED b/fhem/CHANGED index 506e7fd38..250eec9c8 100644 --- a/fhem/CHANGED +++ b/fhem/CHANGED @@ -1,7 +1,8 @@ # Add changes at the top of the list. Keep it in ASCII, and 80-char wide. # Do not insert empty lines here, update check depends on it. - SVN - - feature: readingsGroup: process events only if visible in browser + - feature: readingsGroup: process events only if visible in browser, + allow
for line breaks in multi-reading lines - feature: FLOORPLAN: Style4 (S300TH specific) now keeps its formatting even with longpoll; Text "desiredTemperature" will now be eliminated - for MAX devices. diff --git a/fhem/FHEM/33_readingsGroup.pm b/fhem/FHEM/33_readingsGroup.pm index 9d058e845..9f4ef64c2 100644 --- a/fhem/FHEM/33_readingsGroup.pm +++ b/fhem/FHEM/33_readingsGroup.pm @@ -324,7 +324,12 @@ readingsGroup_2html($) my $name_style = lookup2($name_style,$name,$1,undef); - if( $first || $multi == 1 ) { + if( $txt eq 'br' ) { + $ret .= sprintf("", ($row-1&1)?"odd":"even"); + $ret .= "
"; + $first = 0; + next; + } elsif( $first || $multi == 1 ) { $ret .= sprintf("", ($row&1)?"odd":"even"); $row++; @@ -698,8 +703,8 @@ readingsGroup_Get($@)
  • If regex starts with a '+' it will be matched against the internal values of the device instead of the readings.
  • If regex starts with a '?' it will be matched against the attributes of the device instead of the readings.
  • regex can be of the form <STRING> or <{perl}[#readings]> where STRING or the string returned by perl is - inserted as the reading. skipped if STRING is undef. if readings is given the perl expression will be reevaluated - during longpoll updates.
  • + inserted as the reading. skipped if STRING is undef. if STRING is br a new line will be started. if readings is + given the perl expression will be reevaluated during longpoll updates.
  • For internal values and attributes longpoll update is not possible. Refresh the page to update the values.
  • the <{perl}> expression is limited to expressions without a space. it is best just to call a small sub in 99_myUtils.pm instead of having a compex expression in the define.