Skip to content

Commit

Permalink
Merge pull request #206 from brackleian/master
Browse files Browse the repository at this point in the history
Fix issue #168:  Force XML document declaration to be output before 'characters' event
  • Loading branch information
netvl authored Jul 29, 2021
2 parents 707a7d8 + 1d4992f commit 8ab3284
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/writer/emitter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,7 @@ impl Emitter {

pub fn emit_characters<W: Write>(&mut self, target: &mut W,
content: &str) -> Result<()> {
self.check_document_started(target)?;
self.fix_non_empty_element(target)?;
target.write_all(
(if self.config.perform_escaping {
Expand Down

0 comments on commit 8ab3284

Please sign in to comment.