Commit 112d89a
committed
doctest_docutils(fix[regex]): Backport doctestopt_re whitespace fix
Backport: Sphinx commit ad0c343d3 (2025-01-04)
Ref: sphinx-doc/sphinx@ad0c343d3
why: Doctest directive comments with leading whitespace were not recognized
what:
- Add [ \t]* prefix to doctestopt_re pattern
- Allows doctest options like " # doctest: +SKIP" to be properly parsed
- Fixes edge case where indented doctest directive comments were ignored1 parent dc269ec commit 112d89a
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
33 | | - | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
34 | 37 | | |
35 | 38 | | |
36 | 39 | | |
| |||
0 commit comments