Skip to content

Commit

Permalink
Trim leading spaces along doctest flags
Browse files Browse the repository at this point in the history
  • Loading branch information
m-aciek committed Dec 4, 2024
1 parent df3d94f commit 7ed724b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sphinx/ext/doctest.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
logger = logging.getLogger(__name__)

blankline_re = re.compile(r'^\s*<BLANKLINE>', re.MULTILINE)
doctestopt_re = re.compile(r'#\s*doctest:.+$', re.MULTILINE)
doctestopt_re = re.compile(r' *#\s*doctest:.+$', re.MULTILINE)


def is_allowed_version(spec: str, version: str) -> bool:
Expand Down

0 comments on commit 7ed724b

Please sign in to comment.