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

Empty first line #28

Closed
kezkankrayon opened this issue Sep 9, 2024 · 2 comments
Closed

Empty first line #28

kezkankrayon opened this issue Sep 9, 2024 · 2 comments

Comments

@kezkankrayon
Copy link

The XML.write(path, doc) method appears to write an empty first line before opening the xml tag.

@joshday
Copy link
Member

joshday commented Sep 9, 2024

I cannot reproduce this.

@kezkankrayon
Copy link
Author

Thank you for looking into this issue.

I found what was causing what appeared to be a blank line.
My document node picked up some invisible text from somewhere.

julia> children(doc)
3-element Vector{Node}:
 Node Text "\ufeff"
 Node Declaration <?xml version="1.0" encoding="utf-8"?>
 Node Element <premises group="all"> (300910 children)

When removing the text node, the written XML appears 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

2 participants