openHAB-Alignment-Tool
openHAB-Alignment-Tool copied to clipboard
Semantic Tags and anything following gets deleted upon formatting
trafficstars
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.
To solve this, you need to enclose your tags in double quotes.
This extension seems to be abandonware, hasn't gotten any updates in 4 years.