Pretty-printed arrays not indented correctly
sharwell opened this issue · comments
Sam Harwell commented
var obj = JsonValue.Parse("[1,2]");
var writer = new JsonWriter(pretty: true) { IndentString = " " };
writer.Serialize(obj);
Expected:
[
1,
2
]
Actual:
[
1 ,
2
]
🔗 Originally found in DotNetAnalyzers/StyleCopAnalyzers#2406.
Marcos Vladimir López Castellanos commented