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

Writer : add a space before "/>" of empty emements : as W3C guideline #846

Open
rubik83 opened this issue Feb 25, 2025 · 1 comment
Open

Comments

@rubik83
Copy link

rubik83 commented Feb 25, 2025

In the W3C guideline (C.2): https://www.w3.org/TR/xhtml1/#guidelines
Empty elements should be ended with " />" instead of "/>"
A space should be added at line:
https://github.com/tafia/quick-xml/blob/master/src/writer/async_tokio.rs#L28

@Mingun
Copy link
Collaborator

Mingun commented Feb 25, 2025

I'm open for a PR which will add an option to Writer to do that. It should be documented and tested (doctest will be enough). Because currently Writer does not have options struct like a Reader, the preferred way is to add it.

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

2 participants