Add xml comment

This commit is contained in:
Chris Tsang
2023-09-17 16:24:33 +01:00
parent 68e8e7fdf1
commit 05f5b51db0

View File

@@ -34,6 +34,7 @@ impl SvgFile {
impl fmt::Display for SvgFile {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
writeln!(f, r#"<?xml version="1.0" encoding="UTF-8"?>"#)?;
writeln!(f, r#"<!-- Generator: visioncortex VTracer {} -->"#, env!("CARGO_PKG_VERSION"))?;
writeln!(f,
r#"<svg version="1.1" xmlns="http://www.w3.org/2000/svg" width="{}" height="{}">"#,
self.width, self.height