You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
sitemap repro label="Repro" {
Text item=Repro_Pattern
}
Set value:
openhab:update Repro_Pattern "60 min"
MainUI:
But sitemap has a space added:
Expected Behavior
When using the provided pattern there should not be any spaces added.
Current Behavior
A space is added at the end. The same is true for the pattern %1$tH, for example. However, if both are used, space is only added after the first, so X%1$tHX%1$tMX will become "X01 X00X".
This breaks formatting with state pattern %1$tH:%1$tM. For this specific pattern a work-around is to use %1$tR. This was fixed just in time for RC1 for the Miele@home binding: openhab/openhab-addons#15280, but other bindings (and user configuration) can easily be affected.
I did not observe this problem in 3.4.4, so it seems to be a 4.0 regression.
Your Environment
Version used: 4.0M5
The text was updated successfully, but these errors were encountered:
jlaur
added
the
bug
An unexpected problem or unintended behavior of the Core
label
Jul 21, 2023
Given:
items/repro.items:
sitemaps/sitemaps.items:
Set value:
openhab:update Repro_Pattern "60 min"
MainUI:
But sitemap has a space added:
Expected Behavior
When using the provided pattern there should not be any spaces added.
Current Behavior
A space is added at the end. The same is true for the pattern
%1$tH
, for example. However, if both are used, space is only added after the first, soX%1$tHX%1$tMX
will become "X01 X00X".Possible Solution
Possible regression of #3644. See also openhab/openhab-webui#1953.
Steps to Reproduce
See description.
Context
This breaks formatting with state pattern
%1$tH:%1$tM
. For this specific pattern a work-around is to use%1$tR
. This was fixed just in time for RC1 for the Miele@home binding: openhab/openhab-addons#15280, but other bindings (and user configuration) can easily be affected.I did not observe this problem in 3.4.4, so it seems to be a 4.0 regression.
Your Environment
The text was updated successfully, but these errors were encountered: