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 issue with sample displays being blank #142

Merged
merged 1 commit into from
Sep 21, 2023

Conversation

michael-hawker
Copy link
Member

Fixes CommunityToolkit/Windows#230

Not sure why we only found this out in Release mode, or I guess just from checking out on a fresh machine we used for the store build.

In either case, there was a problem where the Environment.Newline in C# didn't match the files being loaded by the Sample app (files seemed inconsistent which made it harder to diagnose as some samples did load).

What was happening is because the Newline wasn't detected, the code added to strip extraneous header info off of the samples before display was instead just removing all the content.

This change makes it so we only split on the single newline character \n instead.

@michael-hawker michael-hawker added bug 🐛 Something isn't working documentation 📃 Improvements or additions to documentation sample app 🖼 labels Sep 21, 2023
Copy link
Member

@Arlodotexe Arlodotexe left a comment

Choose a reason for hiding this comment

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

Tested locally on UWP (Debug and Release via VS) and WASM, couldn't find any issues.

@Arlodotexe Arlodotexe merged commit 2fc5a33 into main Sep 21, 2023
8 checks passed
@delete-merged-branch delete-merged-branch bot deleted the llama/fix-sample-display branch September 21, 2023 20:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🐛 Something isn't working documentation 📃 Improvements or additions to documentation sample app 🖼
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Gallery missing in-app sample source code
2 participants