mirror of
https://github.com/storytold/gridcraft.git
synced 2026-11-15 14:52:26 +00:00
Merge remote-tracking branch 'origin/switch-craft-libs-opc' into codex/reviewfix-3844
This commit is contained in:
commit
73a18c4f4c
1 file changed
+10
@@ -114,6 +114,16 @@ pub(crate) fn read_xls_budgeted(bytes: &[u8], limits: x::Limits, functions: Func
|
||||
}
|
||||
let mut unparsed = false;
|
||||
for s in &book.sheets {
|
||||
// craft-xls keeps these rules in its read model, but GridCraft's XLS adapter does not
|
||||
// import conditional formatting. Its own warnings cover rules it could not decode; this
|
||||
// reports the additional rules that this adapter drops.
|
||||
if !s.conditional_formats.is_empty() {
|
||||
report.warn(warning(&x::Warning::ConditionalFormattingSkipped));
|
||||
}
|
||||
// Data validation is not yet imported by this adapter.
|
||||
if !s.validations.is_empty() {
|
||||
report.warn(warning(&x::Warning::DataValidationSkipped));
|
||||
}
|
||||
let sheet = sheet_of(s, &styles, &mut unparsed);
|
||||
wb.sheets.push(Arc::new(sheet));
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user