openHAB-Alignment-Tool icon indicating copy to clipboard operation
openHAB-Alignment-Tool copied to clipboard

Semantic Tags and anything following gets deleted upon formatting

Open ankagar opened this issue 2 years ago • 0 comments

When a .items files is formatted containing tags then the tags are deleted and anything following the tag is also deleted.

Group       Home                "Home"              <house>                                 [House]
Group       Indoor              "Indoor"            <group>             (Home)              [Indoor]
Group       Outdoor             "Outdoor"           <group>             (Home)              [Outdoor]

gets reformatted to

Group    Home       "Home"       <house>
Group    Indoor     "Indoor"     <group>    (Home)
Group    Outdoor    "Outdoor"    <group>    (Home)

Another example

DateTime    SunriseTime     "Sunrise [%1$tH:%1$tM]"     <sun>     (Astro)  [Point]  {channel="astro:sun:home:rise#start"}
DateTime    SunsetTime      "Sunset [%1$tH:%1$tM]"      <sun>     (Astro)    {channel="astro:sun:home:set#start"}

becomes after formatting

DateTime    SunriseTime    "Sunrise [%1$tH:%1$tM]"    <sun>    (Astro)
DateTime    SunsetTime     "Sunset [%1$tH:%1$tM]"     <sun>    (Astro)    {channel="astro:sun:home:set#start"}

Observed same results, irrespective of enabling beta features or not and using Column or ChannelColumn format style.

ankagar avatar Mar 06 '22 19:03 ankagar