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

formatter_ltsv: suppress delimiters in output #3288

Merged
merged 2 commits into from
Mar 9, 2021
Merged

Conversation

ashie
Copy link
Member

@ashie ashie commented Mar 8, 2021

Which issue(s) this PR fixes:
Revise #1666

What this PR does / why we need it:
formatter_ltsv creates malformed LTSV files when values include tabs.
This PR prevent it by replacing tabs with spaces.

Docs Changes:
replacement should be added to https://docs.fluentd.org/parser/ltsv

Release Note:
Same with the title

MikePlayle and others added 2 commits December 8, 2020 20:06
Replace tabs with spaces before writing them to the output, to prevent
creating malformed LTSV files.

Also add test cases to verify this behaviour.

Signed-off-by: Mike Playle <[email protected]>
Signed-off-by: Takuro Ashie <[email protected]>
@ashie ashie changed the title formatter_ltsv: Escape separator in value formatter_ltsv: suppress delimiters in output Mar 8, 2021
@ashie ashie merged commit 3e812a8 into fluent:master Mar 9, 2021
@ashie ashie deleted the ltsv-escape branch March 9, 2021 05:46
@ashie
Copy link
Member Author

ashie commented Mar 9, 2021

Thanks @MikePlayle!

ashie added a commit to ashie/fluentd that referenced this pull request Mar 9, 2021
Line breaks should be "\r\n".

Signed-off-by: Takuro Ashie <[email protected]>
cosmo0920 added a commit that referenced this pull request Mar 9, 2021
Fix some failed tests of #3288 on Windows
ashie added a commit to ashie/fluentd-docs-gitbook that referenced this pull request Mar 17, 2021
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.

3 participants