<feed xmlns='http://www.w3.org/2005/Atom'>
<title>org-drill/tests/test-org-drill-cloze-regex-single-line.el, branch main</title>
<subtitle>Spaced-repetition flashcards for Org Mode
</subtitle>
<id>https://git.cjennings.net/org-drill/atom?h=main</id>
<link rel='self' href='https://git.cjennings.net/org-drill/atom?h=main'/>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/'/>
<updated>2026-05-05T10:29:05+00:00</updated>
<entry>
<title>fix: keep cloze regex within a single line (upstream #38)</title>
<updated>2026-05-05T10:29:05+00:00</updated>
<author>
<name>Craig Jennings</name>
<email>c@cjennings.net</email>
</author>
<published>2026-05-05T10:29:05+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cjennings.net/org-drill/commit/?id=718775cdf2baf7b6a2ed09edaa07d5684d47c4a9'/>
<id>urn:sha1:718775cdf2baf7b6a2ed09edaa07d5684d47c4a9</id>
<content type='text'>
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.
</content>
</entry>
</feed>
