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

Select the most appropriate string representation based on heuristic #28

Merged
merged 2 commits into from
Feb 28, 2022

Conversation

abravalheri
Copy link
Owner

Implement a very simple heurist for TOML strings (when using the full variation):

  • When the string contains either " or \, a literal representation is preferred (in the case that is not possible the heuristic will fallback to basic strings).
  • When the string contains \n, a multi-line representation is used.

@abravalheri abravalheri marked this pull request as ready for review February 28, 2022 22:57
@abravalheri abravalheri merged commit 288bd07 into main Feb 28, 2022
@abravalheri abravalheri deleted the use-appropriate-strings branch February 28, 2022 22:58
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.

None yet

1 participant