From 39e293b27d36318e00131fd10144755eec8d1922 Mon Sep 17 00:00:00 2001 From: Damien Elmes Date: Mon, 13 Jan 2025 16:03:27 +1100 Subject: [PATCH] Increase allowed nesting level Making it configurable would be complicated, so this just restores the limit to close to the protobuf limit we were butting up against for now. Related: #3637 --- rslib/src/cloze.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rslib/src/cloze.rs b/rslib/src/cloze.rs index 8bcf5765f..f7f1895b7 100644 --- a/rslib/src/cloze.rs +++ b/rslib/src/cloze.rs @@ -159,7 +159,7 @@ fn parse_text_with_clozes(text: &str) -> Vec> { for token in tokenize(text) { match token { Token::OpenCloze(ordinal) => { - if open_clozes.len() < 3 { + if open_clozes.len() < 8 { open_clozes.push(ExtractedCloze { ordinal, nodes: Vec::with_capacity(1), // common case