8000 Do not break XML files special first line by hoijui · Pull Request #378 · fsfe/reuse-tool · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Do not break XML files special first line #378

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

Merged
merged 2 commits into from
Jun 15, 2021
Merged

Conversation

hoijui
Copy link
Contributor
@hoijui hoijui commented Jun 13, 2021

The special first-line in XML file needs to remain first line, else, the file becomes invalid regarding in the XML spec, and most editors will not recognize the file.
This PR uses the same technique used for shebangs, to protect the first lien in XML files.

This solves #230 (barely).

@nicorikken
Copy link
Member

Clever reuse of the existing code.

@mxmehl
Copy link
Member
mxmehl commented Jun 15, 2021

That looks like a more generally usable and extensible solution, thank you!

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.

3 participants
0