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: allow backslashes in app config (file format) #2209

Merged
merged 2 commits into from
Sep 4, 2024

Conversation

akshayka
Copy link
Contributor

@akshayka akshayka commented Sep 4, 2024

Escape backslashes in app config strings.

Fixes #2202

Copy link

vercel bot commented Sep 4, 2024

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
marimo-docs ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2024 6:11pm
marimo-storybook ✅ Ready (Inspect) Visit Preview 💬 Add feedback Sep 4, 2024 6:11pm

mscolnick
mscolnick previously approved these changes Sep 4, 2024
Serialize string kwargs to the App constructor as r-strings to allow for
backslashes in file paths (windows).
Copy link
Contributor

@mscolnick mscolnick left a comment

Choose a reason for hiding this comment

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

nice I think escaping is better

@mscolnick
Copy link
Contributor

Do we need to do this for layouts? We put them in a subdirectory too, I just haven't see anyone have issues

@akshayka akshayka merged commit 1e6a8b2 into main Sep 4, 2024
30 of 31 checks passed
@akshayka akshayka deleted the aka/fix-file-format-r-string branch September 4, 2024 18:41
@akshayka
Copy link
Contributor Author

akshayka commented Sep 4, 2024

Do we need to do this for layouts? We put them in a subdirectory too, I just haven't see anyone have issues

This change escapes backslashes all string arguments, so it will apply to layouts too (if the layout has a backslash).

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.

Custom.css not found
2 participants