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

Build breaks when there is a space in the image file path. #1116

Open
thejackshelton opened this issue May 3, 2024 · 0 comments
Open

Build breaks when there is a space in the image file path. #1116

thejackshelton opened this issue May 3, 2024 · 0 comments

Comments

@thejackshelton
Copy link

I have ran into this issue multiple times, and so I thought putting it here rather than discord might be a better place. Sorry for that haha.

When using the default image feature, if a space is added in the image file name, it will break the build. This is all the more common when you have the copy of an image. img (1).

I tried updating to the latest version and still ran into this issue when there was a space in the image file name path. Perhaps we could somehow do a replace with an underscore of some sort?

For example:

BREAKS BUILD ❌
my special image.webp

DOESNT BREAK BUILD ✅
my-special-image.webp OR mySpecialImage.webp

is there a way to trim spaces in filenames so that can't happen again? Or a preferred approach?

To reproduce:
Add an image with a space in its name to the document rich text editor, and try building

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

No branches or pull requests

1 participant