mirror of
https://github.com/fhem/fhem-mirror.git
synced 2025-03-03 04:36:36 +00:00
allow <br> for line breaks in multi-reading lines
git-svn-id: https://svn.fhem.de/fhem/trunk@4488 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
parent
803ae3885f
commit
9beb47e56b
@ -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 <br> 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.
|
||||
|
@ -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("<tr class=\"%s\">", ($row-1&1)?"odd":"even");
|
||||
$ret .= "<td><div $name_style class=\"dname\"></div></td>";
|
||||
$first = 0;
|
||||
next;
|
||||
} elsif( $first || $multi == 1 ) {
|
||||
$ret .= sprintf("<tr class=\"%s\">", ($row&1)?"odd":"even");
|
||||
$row++;
|
||||
|
||||
@ -698,8 +703,8 @@ readingsGroup_Get($@)
|
||||
<li>If regex starts with a '+' it will be matched against the internal values of the device instead of the readings.</li>
|
||||
<li>If regex starts with a '?' it will be matched against the attributes of the device instead of the readings.</li>
|
||||
<li>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.</li>
|
||||
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.</li>
|
||||
<li>For internal values and attributes longpoll update is not possible. Refresh the page to update the values.</li>
|
||||
<li>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.</li>
|
||||
|
Loading…
x
Reference in New Issue
Block a user