VectorCraft: An open-source, vector art tool written by scratch in pure Rust
SVG: the placeholder comment names the constant
bflatastic7fd9313d06e8
diff --git a/crates/svg/src/export.rs b/crates/svg/src/export.rsindex e29059ae1..66c9b5010 100644--- a/crates/svg/src/export.rs+++ b/crates/svg/src/export.rs@@ -41,7 +41,7 @@ pub(crate) fn export(doc: &Document, opts: &ExportOptions, native: Option<&[u8]>if opts.object_ids != ObjectIds::Unique {return write(doc, opts, native, "");}- // Unique ids: write the body once with a placeholder prefix of fixed length (12 bytes),+ // Unique ids: write the body once with a placeholder prefix ([`UNIQUE_PLACEHOLDER`]),// hash the result, and replace the placeholder with the computed prefix in a single pass.let mut out = write(doc, opts, native, UNIQUE_PLACEHOLDER);let prefix = format!("u{:010x}-", fnv1a(out.svg.as_bytes()) & 0xff_ffff_ffff);