We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b8488d9 commit c914660Copy full SHA for c914660
custom_directives.py
@@ -25,7 +25,7 @@ def run(self):
25
26
try:
27
text = open(filename).read()
28
- text_no_docstring = self.docstring_regex.sub('', text)
+ text_no_docstring = self.docstring_regex.sub('', text, count = 0)
29
30
code_block = nodes.literal_block(text=text_no_docstring)
31
return [code_block]
0 commit comments