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 unintended whitespace #278

Merged
merged 6 commits into from
Sep 13, 2024
Merged

Fix unintended whitespace #278

merged 6 commits into from
Sep 13, 2024

Conversation

pyth0n1c
Copy link
Contributor

@pyth0n1c pyth0n1c commented Sep 6, 2024

Trailing newline(s) in string fields may cause issues with some parsers when written to conf file. In particular, it causes issues with this open source splunk conf file parser: https://github.com/splunk/addonfactory-splunk-conf-parser-lib
Note that this issue does NOT occur in the Splunk product itself.

This PR removes leading AND trailing whitespace when long string fields are serialized to conf file.

Copy link
Collaborator

@cmcginley-splunk cmcginley-splunk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed that this fix does indeed resolve any in product parsing errors

@pyth0n1c pyth0n1c merged commit 90db899 into main Sep 13, 2024
18 checks passed
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.

2 participants