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 build issue when string resource has newlines #208

Merged
merged 1 commit into from
Mar 1, 2023
Merged

Conversation

kzu
Copy link
Member

@kzu kzu commented Mar 1, 2023

The value when no Comment is provided in teh resource file is used to make up the code comment for the generated property. This breaks if the value has newlines in it.

A workaround is for users to provide a shorter description in the resx, but we now also sanitize the value by replacing newlines with a whitespace.

@kzu kzu added the bug Something isn't working label Mar 1, 2023
@kzu kzu enabled auto-merge (rebase) March 1, 2023 17:45
@kzu kzu force-pushed the dev/newline-comment branch 2 times, most recently from 570f8c9 to 0e96020 Compare March 1, 2023 18:16
The value when no Comment is provided in teh resource file is used to make up the code comment for the generated property. This breaks if the value has newlines in it.

A workaround is for users to provide a shorter description in the resx, but we now also sanitize the value by replacing newlines with a whitespace.
@kzu kzu force-pushed the dev/newline-comment branch from 0e96020 to 3201501 Compare March 1, 2023 18:17
@kzu kzu merged commit 561c16e into main Mar 1, 2023
@kzu kzu deleted the dev/newline-comment branch March 1, 2023 18:23
@devlooped devlooped locked and limited conversation to collaborators Sep 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant