diff --git a/tvix/eval/src/builtins/to_xml.rs b/tvix/eval/src/builtins/to_xml.rs index 5382beb60..4176c8146 100644 --- a/tvix/eval/src/builtins/to_xml.rs +++ b/tvix/eval/src/builtins/to_xml.rs @@ -24,7 +24,7 @@ pub(super) fn value_to_xml(mut writer: W, value: &Value) -> Result<(), // Write a literal document declaration, using C++-Nix-style // single quotes. - write!(writer, "\n")?; + writeln!(writer, "")?; let mut writer = EventWriter::new_with_config(writer, config); @@ -33,7 +33,7 @@ pub(super) fn value_to_xml(mut writer: W, value: &Value) -> Result<(), writer.write(XmlEvent::end_element())?; // Unwrap the writer to add the final newline that C++ Nix adds. - write!(writer.into_inner(), "\n")?; + writeln!(writer.into_inner())?; Ok(()) }