Skip to content

Commit

Permalink
add xml header
Browse files Browse the repository at this point in the history
  • Loading branch information
BrettMayson committed Oct 20, 2024
1 parent 38bcde0 commit 74bf9b2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion libs/stringtable/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ impl Project {
&self,
writer: &mut W,
) -> Result<(), quick_xml::de::DeError> {
// If this write fails, the serializer will also throw an error
let _ = writer.write_str(r#"<?xml version="1.0" encoding="utf-8"?>"#);
let _ = writer.write_char('\n');
let mut ser = Serializer::new(writer);
ser.indent(' ', 4);

self.serialize(ser)
}
}

0 comments on commit 74bf9b2

Please sign in to comment.