Fix indent in nested list/dict by roosephu · Pull Request #34 · dpranke/pyjson5
Navigation Menu
{{ message }}
- Notifications You must be signed in to change notification settings
- Fork 34
Merged
Fix indent in nested list/dict#34
dpranke merged 1 commit intodpranke:masterfrom
Fix indent in nested list/dict#34
dpranke merged 1 commit intodpranke:masterfrom
Conversation
Copy link
Contributor
roosephu
commented
Mar 1, 2020
roosephu
commented
This PR fixes wrong indentation of nested list/dict.
Related code:
print(json5.dumps([[1, 2, 3]], indent=2))
Expected result:
[
[
1,
2,
3,
],
]
Got:
[
[
1,
2,
3,
],
]
dpranke approved these changes Mar 2, 2020
Copy link
Owner
dpranke
left a comment
dpranke
left a comment
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks for the fix!
dpranke
merged commit
8a7c9b9
into
dpranke:master
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment