From b693bdbf28b654eec45633e4c55d26347f0663df Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Thu, 24 Jun 2021 15:29:21 +1000 Subject: [PATCH] cope with collections where latexsvg is not a bool --- rslib/src/notetype/schema11.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/notetype/schema11.rs b/rslib/src/notetype/schema11.rs index fd2e9ffae..962adfa4f 100644 --- a/rslib/src/notetype/schema11.rs +++ b/rslib/src/notetype/schema11.rs @@ -49,7 +49,7 @@ pub struct NotetypeSchema11 { pub(crate) latex_pre: String, #[serde(default)] pub(crate) latex_post: String, - #[serde(default)] + #[serde(default, deserialize_with = "default_on_invalid")] pub latexsvg: bool, #[serde(default, deserialize_with = "default_on_invalid")] pub(crate) req: CardRequirementsSchema11,