Closed pelerner closed 4 years ago
Certain characters enclosed in "..." lead to misformatting and syntactical incorrect item-files.
The formatting should yield a working and syntactical correct item-file.
On some "special characers" inside strings, the formatting fails to produce the correct syntax of an item file.
I suspect the less-than character "<" inside a string to fail the formatting.
Improve special character handling.
Format-Style "Column"
Hello @pelerner
sorry i cannot reproduce the problem. In the newest version everything is formattting correctly.
Certain characters enclosed in "..." lead to misformatting and syntactical incorrect item-files.
Expected Behavior
The formatting should yield a working and syntactical correct item-file.
Current Behavior
On some "special characers" inside strings, the formatting fails to produce the correct syntax of an item file.
----before formatting----- Contact Wetter_Aussentemperatur_Grenze2 "AT2 <20° [MAP(de.map):%s]" (Wetter) {knx="<3/1/15"}
----after formatting-----
Contact Wetter_Aussentemperatur_Grenze2 "AT2 <20° [MAP(de.map):%s]" <20° [MAP(de.map):%s]" <20° [MAP(de.map):%s]" {knx="<3/1/15"}
I suspect the less-than character "<" inside a string to fail the formatting.
Possible Solution
Improve special character handling.
Steps to Reproduce (for Bugs)
Format-Style "Column"