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

Allow URL-encoded spaces in generated HTML #11

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

sellout
Copy link

@sellout sellout commented Dec 19, 2024

After generating the HTML with xmlgen, the HTML is passed to format as a
format string. However, “%” is not an uncommon character in HTML, most commonly
with “%20” for URL-encoded spaces. format would complain when it encountered
these.

This is a workaround to specifically get format to ignore %20. A more
general solution would be better, but this fixes my immediate issue of entries
having spaces in their names.

This also wraps the “Error during parsing of entry text” message in a <p>.

After generating the HTML with xmlgen, the HTML is passed to `format` as a
format string. However, “%” is not an uncommon character in HTML, most commonly
with “%20” for URL-encoded spaces. `format` would complain when it encountered
these.

This is a workaround to specifically get `format` to ignore `%20`. A more
general solution would be better, but this fixes my immediate issue of entries
having spaces in their names.

This also wraps the “Error during parsing of entry text” message in a `<p>`.
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.

1 participant