diff options
| author | Craig Jennings <c@cjennings.net> | 2026-05-05 09:33:34 -0500 |
|---|---|---|
| committer | Craig Jennings <c@cjennings.net> | 2026-05-05 09:33:34 -0500 |
| commit | 072b59b07545c9fb076c9181d16f7b2971b65421 (patch) | |
| tree | 1471b4f35c42a533bd08e2df56bcb68858cfcce3 /scripts/coverage-summary.py | |
| parent | 066cd82302f76f21b3409a00aabe0d8de1d9e34e (diff) | |
| download | org-drill-072b59b07545c9fb076c9181d16f7b2971b65421.tar.gz org-drill-072b59b07545c9fb076c9181d16f7b2971b65421.zip | |
refactor: introduce org-drill-with-card-display macro
Five presenters opened with the same three-deep wrap:
(org-drill-with-hidden-comments
(org-drill-with-hidden-cloze-hints
(org-drill-with-hidden-cloze-text
...body...)))
Combined into org-drill-with-card-display. Five sites
(present-simple-card, present-simple-card-with-typed-answer,
present-two-sided-card, present-multi-sided-card,
present-spanish-verb) lose 2-3 lines of nesting each.
Multicloze-hide-n / hide-nth use a different envelope (only two of
the three wraps; they hide specific clozes by index, not all of
them) so they keep their explicit nesting. Same for
present-card-using-text, which substitutes with-replaced-entry-text
for with-hidden-cloze-text.
Diffstat (limited to 'scripts/coverage-summary.py')
0 files changed, 0 insertions, 0 deletions
