Closed huyuwen closed 4 years ago
Maybe here is the code, where the space comes from. https://github.com/theia-ide/yang-lsp/blob/306fcd791c8234a9eddd1811682367a69ad07ab2/yang-lsp/io.typefox.yang/src/main/java/io/typefox/yang/formatting2/YangFormatter.xtend#L557
We loaded a simple module first.
Now we try to add length statement to l1's type by using code.
When we get the serialization result, it looks like the following format.
This kind of format of length is not accept by pyang. So we think the valid serlization result should be one of the two followings.