mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-13 09:20:56 -06:00
Native files: open reads the PDF preference in the same pass as the document
Opening a native file read its JSON twice: once for the document and once more for the saved pdfCompatible preference. The format crate now takes the preference from craft-vectorcraft-format's Contents::read_with_pdf_preference (craft-libs#562), so a file is read in one pass. That method refuses a pdfCompatible that is not a boolean, which main opens by skipping the value and falling back to whether the file carries a PDF. Such a file, or one with any other data error, is read again with Contents::read and scanned for the preference as before, so the files that open today still open with the same result. The craft-vectorcraft-format pin moves to 1b34eba41e, the craft-libs revision craft-update already uses.
This commit is contained in:
Generated
+1
-1
@@ -1096,7 +1096,7 @@ dependencies = [
|
||||
[[package]]
|
||||
name = "craft-vectorcraft-format"
|
||||
version = "0.1.0"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=9be9a63782298ab59cd9b7a42ee9cba4f42a5ccb#9be9a63782298ab59cd9b7a42ee9cba4f42a5ccb"
|
||||
source = "git+https://github.com/storytold/craft-libs?rev=1b34eba41e62138fc2438d2734523b302840b45d#1b34eba41e62138fc2438d2734523b302840b45d"
|
||||
dependencies = [
|
||||
"flate2",
|
||||
"serde",
|
||||
|
||||
Reference in New Issue
Block a user