-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Shell
-
None
-
ALL
> tojson({withSpaces: '1 2 3 done'}) { "withSpaces" : "1 2 3 done" }
Here is the broken code: https://github.com/mongodb/mongo/blob/f876d2d71a7c238889c222164571a9e7170ec080/src/mongo/shell/utils.js#L978
Based on the blame, it looks like we've been doing this basically forever.
- duplicates
-
SERVER-7424 Shell trims multiple whitespace characters in strings when displaying (data not affected)
- Closed