maxbec / openHAB-Alignment-Tool

This extension adds support for formatting and indenting openHAB files. At the moment only the item-files are supported.
https://marketplace.visualstudio.com/items?itemName=max-beckenbauer.oh-alignment-tool
Eclipse Public License 2.0
21 stars 4 forks source link

< (Less than) symbol in label causes format issues. #68

Open Hobohome opened 2 years ago

Hobohome commented 2 years ago

Any Item "label" containing a < (less than) symbol results in strange formatting.

Example Orignal

Number  PV_West_Alert_Power "Alert When West Max Power < [%dW]" <solarplant>    (gMapDBpersist,gLogChangesInfo)

After Formatting

Number    PV_West_Alert_Power    "Alert When West Max Power < [%dW]"    <[%dW]"                         <solarplant>     (gMapDBpersist,gLogChangesInfo)

Expected

Number      PV_West_Alert_Power                 "Alert When West Max Power < [%dW]"                         <solarplant>            (gMapDBpersist,gLogChangesInfo)

I think the formatter should ignore all symbols within quotes.

Many thanks