Object key print in formatter weak and incorrect
- Dominant language
- C++
- Stars
- 4
- Forks
- 6
- PR merge metrics
- No merged PRs in 30d
Description
Theres a object key printing bug in printJson (jsonformatter.cpp)
os << get_color(AnsiColor::KEY) << '"' << kv.first << "\":" << get_reset();
We currently print ":" without space after colon, then later add space only in non-compact mode:cpp
os << (!compact ? " " : "");
We should print a space after : colon
Contributor guide
No contributing guide indexed for this repository
Research direction
Start in jsonformatter.cpp at the printJson entry point and inspect the shown object-key output and following compact-mode conditional. Verify the expected spacing in compact and non-compact output; the issue is done when object keys print the intended colon spacing without breaking compact formatting.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 1/5
- Estimated time
- Under an hour
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 55/100