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

Invalid control character #50

Closed
ndtoan96 opened this issue Dec 21, 2022 · 1 comment · Fixed by #51
Closed

Invalid control character #50

ndtoan96 opened this issue Dec 21, 2022 · 1 comment · Fixed by #51
Labels
bug Something isn't working PR welcome User contribution/PR is welcome

Comments

@ndtoan96
Copy link
Contributor

When I copy paste some string with tab character in it (not escaped) to string literal, Tomlyn throws Unhandled exception. Tomlyn.TomlException: (117,8) : error : Invalid control character found \t. For example:

[config]
something = 'a	b'
something_else = '''a
	b'''

This should be a normal use case, maybe we can have an option strict = false or something like that to avoid this error.

@xoofx xoofx added the bug Something isn't working label Dec 21, 2022
@xoofx
Copy link
Owner

xoofx commented Dec 21, 2022

Indeed, I think the spec from strings here is actually mentioning that TAB is not an error.

@xoofx xoofx added the PR welcome User contribution/PR is welcome label Dec 21, 2022
@xoofx xoofx closed this as completed in #51 Dec 22, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working PR welcome User contribution/PR is welcome
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants