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

combination of space and comma should be irrelevant in bindingconfig #46

Closed CWempe closed 4 years ago

CWempe commented 4 years ago

Example code:

Switch  A   "B" <c> (D) {channel="e", alexa="Speaker.muted"}
Switch  A   "B" <c> (D) {channel="e" ,alexa="Speaker.muted"}
Switch  A   "B" <c> (D) {channel="e" , alexa="Speaker.muted"}

Result:

image

Only the first combination ,_ produces the expected result. The other two _, and _,_ do not produce a new line.

Version: 2.0.7

CWempe commented 4 years ago

And I think the result (for Column style) should be ,_ not ,.

current result:

image

Example from openhab documentation:

image