-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Docutils: @.*
gets converted to &
in static filenames
#2646
Comments
The problem happens in
As a workaround, if i add |
I traced this back to docutils. I.e., the What I don't know is whether |
Well, that's a bit odd behavior of docutils. That aside, I don't know why this does naive replacement instead of |
Do you know whether docutuls does URL encoding generally? I've tried to look for it but couldn't find it. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding. |
@avaris in that case, should i report this as a docutils bug? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your participation and understanding. |
Can/should this be fixed on pelicans side, or should it be reported upstream in docutils instead? |
@.*
gets converted to &
in static filenames@.*
gets converted to &
in static filenames
@gergelypolonkai: I suggest reporting this to Docutils. For whatever value it may have, I found several references to Docutils encoding the https://docutils.sourceforge.io/docs/user/config.html#id137 From the changelog, back in 2003:
|
It seems that this mangling of email addresses as done only if some
Off to the docutils issue board, then. |
Based on the response, seems like it's a feature, not a bug ™. But, I agree with the comment that we can be a bit more robust. Extending the search alternatives to URL decoded versions was probably required, we can add the HTML unescaped versions as well. |
Thanks to @avaris working on the above-linked PR, this issue should now be addressed. Feel free to test latest master and post a comment here if any follow-up changes are deemed to be warranted. |
Fix for this issue is included in the just-released Pelican 4.5.1. ✨ |
I’m currently migrating my blog from Jekyll to Pelican and try hard to preserve old filenames. One of these is my PGP key called
gergely@polonkai.eu.asc
. In my about page i addedThe file gets included (the content appears on the page), the link on the generated page references the correct filename, but the file does not exist, and i get this warning:
If i escape the
@
character as%40
or using a backslash (\@
) the problem remains.The text was updated successfully, but these errors were encountered: