aboutsummaryrefslogtreecommitdiff
path: root/tests/test-org-drill-cloze-regex-single-line.el
Commit message (Collapse)AuthorAgeFilesLines
* fix: keep cloze regex within a single line (upstream #38)Craig Jennings2026-05-051-0/+57
The inner match was [[:cntrl:][:graph:][:space:]]+?, which silently includes newline. A stray [ could match all the way to a ] several lines later, covering org headings in between with the visible-cloze face. Reporter saw lines 4 and 5 of test.org lose their org-level-N face and use default instead. Switched the inner class to [^\n]+?. Clozes now stay within a single line, which matches the design intent and stops the face bleed. Three new tests cover the regression.