Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Render bools, numbers, strings and null at same line while rendering array #7

Merged
merged 1 commit into from
Feb 11, 2014

Conversation

gotterdemarung
Copy link
Contributor

While rendering array, prettyjson shows unexpected result for any scalar, except strings.

console.log(prettyjson.render([true, false])); will produce

 - 
    true
 -
    false

This patch fixes it and output will be:

 - true
 - false

@rafeca rafeca merged commit 23d2870 into rafeca:master Feb 11, 2014
@rafeca
Copy link
Owner

rafeca commented Feb 11, 2014

Nice one! Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants