File tree Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Expand file tree Collapse file tree 1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change 1212
1313try :
1414 import sphinx_gallery
15-
1615 HAS_SPHINX_GALLERY = True
1716except ImportError :
1817 HAS_SPHINX_GALLERY = False
1918
20-
2119class IncludeDirective (Directive ):
2220 """Include source file without docstring at the top of file.
2321
@@ -94,9 +92,7 @@ def run(self):
9492 if "intro" in self .options :
9593 intro = self .options ["intro" ][:195 ] + "..."
9694 else :
97- block_parser = sphinx_gallery .gen_rst .BlockParser (
98- abs_fname , {"filetype_parsers" : {}}
99- )
95+ block_parser = sphinx_gallery .gen_rst .BlockParser (abs_fname , {"filetype_parsers" : {}})
10096 _ , blocks , _ = block_parser .split_code_and_text_blocks (abs_fname )
10197 intro , _ = sphinx_gallery .gen_rst .extract_intro_and_title (
10298 abs_fname , blocks [0 ][1 ]
You can’t perform that action at this time.
0 commit comments