mirror of
https://github.com/typst/typst
synced 2025-08-17 00:18:33 +08:00
more and update
This commit is contained in:
parent
ccec0dedbf
commit
6af9eb9bbd
1
Cargo.lock
generated
1
Cargo.lock
generated
@ -1345,6 +1345,7 @@ dependencies = [
|
|||||||
[[package]]
|
[[package]]
|
||||||
name = "krilla"
|
name = "krilla"
|
||||||
version = "0.3.0"
|
version = "0.3.0"
|
||||||
|
source = "git+https://github.com/LaurenzV/krilla?rev=399dc59#399dc596fdb27fde3ca1eef27b74625affed199a"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"base64",
|
"base64",
|
||||||
"bumpalo",
|
"bumpalo",
|
||||||
|
@ -70,7 +70,7 @@ if_chain = "1"
|
|||||||
image = { version = "0.25.5", default-features = false, features = ["png", "jpeg", "gif"] }
|
image = { version = "0.25.5", default-features = false, features = ["png", "jpeg", "gif"] }
|
||||||
indexmap = { version = "2", features = ["serde"] }
|
indexmap = { version = "2", features = ["serde"] }
|
||||||
kamadak-exif = "0.6"
|
kamadak-exif = "0.6"
|
||||||
krilla = { path = "../krilla/crates/krilla", features = ["svg", "raster-images", "comemo", "rayon"] }
|
krilla = { git = "https://github.com/LaurenzV/krilla", rev = "399dc59", features = ["svg", "raster-images", "comemo", "rayon"] }
|
||||||
kurbo = "0.11"
|
kurbo = "0.11"
|
||||||
libfuzzer-sys = "0.4"
|
libfuzzer-sys = "0.4"
|
||||||
lipsum = "0.9"
|
lipsum = "0.9"
|
||||||
|
@ -353,7 +353,7 @@ fn finish(document: Document, gc: GlobalContext) -> SourceResult<Vec<u8>> {
|
|||||||
.unwrap_or(Span::detached())
|
.unwrap_or(Span::detached())
|
||||||
};
|
};
|
||||||
|
|
||||||
let mut errors = ve.iter().map(|e| {
|
let errors = ve.iter().map(|e| {
|
||||||
match e {
|
match e {
|
||||||
ValidationError::TooLongString => {
|
ValidationError::TooLongString => {
|
||||||
error!(Span::detached(), "{prefix} a PDF string is longer \
|
error!(Span::detached(), "{prefix} a PDF string is longer \
|
||||||
@ -473,12 +473,9 @@ fn finish(document: Document, gc: GlobalContext) -> SourceResult<Vec<u8>> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
.collect::<Vec<_>>();
|
.collect::<EcoVec<_>>();
|
||||||
|
|
||||||
// Deduplicate errors with unspanned tags.
|
Err(errors)
|
||||||
errors.dedup();
|
|
||||||
|
|
||||||
Err(errors.into_iter().collect::<EcoVec<_>>())
|
|
||||||
}
|
}
|
||||||
KrillaError::ImageError(i) => {
|
KrillaError::ImageError(i) => {
|
||||||
let span = gc.image_to_spans.get(&i).unwrap();
|
let span = gc.image_to_spans.get(&i).unwrap();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user