Skip to content

Commit

Permalink
Increase allowed nesting level
Browse files Browse the repository at this point in the history
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
  • Loading branch information
dae committed Jan 13, 2025
1 parent 9a5c217 commit 39e293b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rslib/src/cloze.rs
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ fn parse_text_with_clozes(text: &str) -> Vec<TextOrCloze<'_>> {
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
Expand Down

0 comments on commit 39e293b

Please sign in to comment.