#6005: glossary limits strict export to what the output shows; escape run's save errors

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01FypgCX8G9hbs6XYZFsgjbL
This commit is contained in:
Martin Ball
2026-11-08 16:17:53 +00:00
co-authored by Claude Opus 5.5
parent 28c5cbf139
commit a0baff5daa
2 changed files with 4 additions and 3 deletions
+3 -2
View File
@@ -52,8 +52,9 @@ _Avoid_: Custom dictionaries
## Export
**Strict export**:
An export that writes nothing, and reports why, when the output would leave out a character or a
picture the document contains.
An export that writes nothing, and reports why, when a character or picture the output is meant
to show would be missing from it. Text the output doesn't show (hidden text, deletions without
markup) isn't checked.
_Avoid_: Safe mode, validated export
**Missing glyph**:
+1 -1
View File
@@ -637,7 +637,7 @@ fn run<S: AsRef<OsStr>>(args: &[S]) -> Result<(), Failure> {
return Err(format!("{out}: is a folder, not a file").into());
}
if !out.to_ascii_lowercase().ends_with(".png") {
wordcraft_engine::io::save_bytes(out, &s.doc)?;
wordcraft_engine::io::save_bytes(out, &s.doc).map_err(engine_error)?;
}
}
for out in outputs {