mirror of
https://github.com/typst/typst
synced 2025-07-27 14:27:56 +08:00
refactor: update krilla
This commit is contained in:
parent
3d4d548934
commit
4dceb7f5ef
4
Cargo.lock
generated
4
Cargo.lock
generated
@ -1367,7 +1367,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "krilla"
|
||||
version = "0.4.0"
|
||||
source = "git+https://github.com/saecki/krilla?branch=tag-attributes#2897351d6eeb139675b5e7e2765fe6f082e26efd"
|
||||
source = "git+https://github.com/saecki/krilla?branch=tag-attributes#a13326781d3959896a468b79dd80741bd3ab2398"
|
||||
dependencies = [
|
||||
"base64",
|
||||
"bumpalo",
|
||||
@ -1396,7 +1396,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "krilla-svg"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/saecki/krilla?branch=tag-attributes#2897351d6eeb139675b5e7e2765fe6f082e26efd"
|
||||
source = "git+https://github.com/saecki/krilla?branch=tag-attributes#a13326781d3959896a468b79dd80741bd3ab2398"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"fontdb",
|
||||
|
@ -598,7 +598,7 @@ fn convert_error(
|
||||
let span = to_span(*loc);
|
||||
error!(span, "{prefix} duplicate tag id")
|
||||
}
|
||||
ValidationError::UnknownHeaderTagId(_id, loc) => {
|
||||
ValidationError::UnknownTagId(_id, loc) => {
|
||||
// TODO: display the id and better error message
|
||||
let span = to_span(*loc);
|
||||
error!(span, "{prefix} unknown header tag id")
|
||||
|
@ -1,8 +1,7 @@
|
||||
use std::num::{NonZeroU32, NonZeroUsize};
|
||||
|
||||
use krilla::tagging::{
|
||||
TableCellHeaders, TableCellSpan, TableDataCell, TableHeaderCell, TagBuilder, TagId,
|
||||
TagKind,
|
||||
TableCellSpan, TableDataCell, TableHeaderCell, TagBuilder, TagId, TagIdRefs, TagKind,
|
||||
};
|
||||
use typst_library::foundations::{Packed, Smart, StyleChain};
|
||||
use typst_library::model::{TableCell, TableCellKind, TableElem, TableHeaderScope};
|
||||
@ -84,7 +83,7 @@ impl TableCtx {
|
||||
rowspan,
|
||||
colspan,
|
||||
kind,
|
||||
headers: TableCellHeaders::NONE,
|
||||
headers: TagIdRefs::NONE,
|
||||
nodes,
|
||||
});
|
||||
}
|
||||
@ -294,7 +293,7 @@ struct TableCtxCell {
|
||||
rowspan: NonZeroUsize,
|
||||
colspan: NonZeroUsize,
|
||||
kind: Smart<TableCellKind>,
|
||||
headers: TableCellHeaders,
|
||||
headers: TagIdRefs,
|
||||
nodes: Vec<TagNode>,
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user