We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Given the file contents:
{"a": -1e-10}
Reindenting returns:
{ "a": "-1e-10" }
It should leave it as a number in scientific notation:
{ "a": -1e-10 }
The text was updated successfully, but these errors were encountered:
Looks like this is due to using pyyaml to load json...
>>> json.loads("-1e-10") -1e-10 >>> yaml.safe_load("-1e-10") '-1e-10'
Here is the bug report in PyYAML: yaml/pyyaml#173
Sorry, something went wrong.
No branches or pull requests
Given the file contents:
Reindenting returns:
It should leave it as a number in scientific notation:
The text was updated successfully, but these errors were encountered: