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

Image assets with whitespace in path are not rendered correctly #32

Open
johannesloibl opened this issue Dec 4, 2024 · 0 comments
Open

Comments

@johannesloibl
Copy link
Contributor

Asset Script:

from pharaoh.assetlib.api import register_asset

register_asset("C:/temp/image with whitespace.png", metadata={"id": "myimage"})

Template:

.. pharaoh-asset:: id == "myimage"

This will fail with an error like this:

internal padding after C:\git\...\index.rst:6: WARNING: image file not readable: .asset_build/ImageGallery/imagewithwhitespace_bba7153e.png

After replacing the whitespace in the filename with _ everything works as expected.

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