Skip to content

Commit c914660

Browse files
author
euler16
committed
Fixing topdocstring issue
1 parent b8488d9 commit c914660

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

custom_directives.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def run(self):
2525

2626
try:
2727
text = open(filename).read()
28-
text_no_docstring = self.docstring_regex.sub('', text)
28+
text_no_docstring = self.docstring_regex.sub('', text, count = 0)
2929

3030
code_block = nodes.literal_block(text=text_no_docstring)
3131
return [code_block]

0 commit comments

Comments
 (0)