shepmaster / sxd-document

An XML library in Rust
MIT License
152 stars 36 forks source link

Properly pop scope on empty elements #44

Closed draivin closed 7 years ago

draivin commented 7 years ago

The previous behavior would add a scope to the stack when opening a self closing element, but wouldn't pop it after the element was written, this caused the scope stack to desync with the document.

shepmaster commented 7 years ago

An embarrassing mistake! Thank you very much!