mirror of
https://github.com/storytold/pdfcraft.git
synced 2026-11-09 04:22:20 +00:00
M2.6: a damaged-stream refusal says the content may be past the damage
Since marking a figure decorative or a tag as an artifact refuses content not found beside a damaged stream, the refusal also covers content that only may be past the damage. Its message said the content is in a damaged stream; it now says it is, or may be. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01AmsdeUCdTaD72jkDw2pJKY
This commit is contained in:
1 parent
2d672d9517
commit
ebf9c7a3ce
1 file changed
+6
-2
@@ -25,7 +25,9 @@ pub enum AltError {
|
||||
NotAFigure(u32),
|
||||
#[error("the page has more content than can be edited")]
|
||||
TooLarge,
|
||||
#[error("the figure's content is in a content stream damaged partway, which can't be rewritten without losing what follows the damage")]
|
||||
#[error(
|
||||
"the figure's content is, or may be, in a content stream damaged partway, which can't be rewritten without losing what follows the damage"
|
||||
)]
|
||||
Damaged,
|
||||
#[error("{0}")]
|
||||
Cos(#[from] pdfcraft_cos::CosError),
|
||||
@@ -54,7 +56,9 @@ pub enum ArtifactError {
|
||||
ParentTree(String),
|
||||
#[error("the page has more content than can be edited")]
|
||||
TooLarge,
|
||||
#[error("the tag's marked content is in a content stream damaged partway, which can't be rewritten without losing what follows the damage")]
|
||||
#[error(
|
||||
"the tag's marked content is, or may be, in a content stream damaged partway, which can't be rewritten without losing what follows the damage"
|
||||
)]
|
||||
Damaged,
|
||||
#[error(transparent)]
|
||||
Cos(#[from] pdfcraft_cos::CosError),
|
||||
|
||||
Reference in new issue
Block a user