pub fn splice(
manifest: &str,
label: &str,
id: &str,
rows: &[String],
) -> Result<(String, Option<String>), String>Expand description
manifest with this source’s block replaced, or appended if it has none,
and a warning when one was to be said.
Markers are searched INDEPENDENTLY, like agents_md::block_range does, so a
file carrying one without the other is reported rather than silently
half-rewritten. The markers before 4.3 (amont:pack:*) are read too, until
the census: an old block is replaced in place and comes back under the new
markers. When both spellings of one label exist, the old block is removed,
the new one replaced, and the warning says so. Blocks that overlap are
refused before anything is cut.