Skip to content

Fix calculation of minimum number of clozes for one by one#254

Merged
abdnh merged 8 commits into
masterfrom
min-1b1-fixes
Apr 28, 2026
Merged

Fix calculation of minimum number of clozes for one by one#254
abdnh merged 8 commits into
masterfrom
min-1b1-fixes

Conversation

@abdnh
Copy link
Copy Markdown
Contributor

@abdnh abdnh commented Apr 28, 2026

This fixes some issues with calculation of minimum number of clozes to enable one by one:

  1. numClozesForNumber on the back side was also counting clozes inside {{edit:cloze:Text}}, resulting in double counts.
  2. alwaysOneByOne was overriding numClozesForNumber. Having it the other way around is more flexible.

See report: https://community.ankihub.net/t/onebyone-always-on-if-clozes-2-is-not-working/586234

@abdnh abdnh requested a review from RisingOrange April 28, 2026 05:10
@abdnh abdnh merged commit 21d8b64 into master Apr 28, 2026
@abdnh abdnh deleted the min-1b1-fixes branch April 28, 2026 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants