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

Fix to "Backslashes are added in long texts" issue. #4350

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

HugoMario
Copy link
Contributor

The problem is related to a quoating check feature added in jackson.
https://github.com/FasterXML/jackson-dataformats-text/blob/2.15/yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/YAMLGenerator.java#L664-L668

Basically any text that contains a comma , will be quoted on serialization.
https://github.com/FasterXML/jackson-dataformats-text/blob/2.15/yaml/src/main/java/com/fasterxml/jackson/dataformat/yaml/util/StringQuotingChecker.java#L132-L165

On long text this makes that backslashes be added when the text is wrapped.

So, this PR is filed to ignore the comma , on quoting checking to keep the text without quotes and avoid the present of backslashes.

…tion issue when a comma is present in a text.
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