Skip to content

Commit 418cac2

Browse files
committed
Lint
1 parent 783c14e commit 418cac2

File tree

1 file changed

+3
-1
lines changed
  • src/sphinx_codeautolink/extension

1 file changed

+3
-1
lines changed

src/sphinx_codeautolink/extension/block.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -381,7 +381,9 @@ def link_html(
381381
from_prere = r'(<span class="kn">from</span>\s+)'
382382

383383
no_dot_postre = r'(?!(<span class="o">\.)|(</a>))'
384-
import_postre = r'(?=($)|(\s+)|(<span class="[op]">,</span>)|(<span class="p">\)))(?!</a>)'
384+
import_postre = (
385+
r'(?=($)|(\s+)|(<span class="[op]">,</span>)|(<span class="p">\)))(?!</a>)'
386+
)
385387
from_postre = r'(?=\s*<span class="kn">import</span>)'
386388

387389

0 commit comments

Comments
 (0)