Skip to content

Fix #1390: preserve line breaks and whitespace in FileSystemConfigSource - #1521

Closed
phateffect wants to merge 3 commits into
smallrye:mainfrom
phateffect:issue-1390
Closed

Fix #1390: preserve line breaks and whitespace in FileSystemConfigSource#1521
phateffect wants to merge 3 commits into
smallrye:mainfrom
phateffect:issue-1390

Conversation

@phateffect

Copy link
Copy Markdown

Currently, FileSystemConfigSource uses Files.lines().collect(joining()) which strips all line endings from the source file.

This PR switches to Files.readString() to ensure the content is returned exactly as-is, preserving multiline values and trailing spaces.

Replace Files.lines().collect(joining()) with Files.readString() to
preserve line breaks and whitespace in file-based config values.
Add test coverage for multiline file contents.

@radcortez radcortez left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Code does not compile.

@radcortez radcortez closed this Aug 20, 2026
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