Skip to content

Commit 7e42701

Browse files
committed
Remove local formatter changes
1 parent 6409fb9 commit 7e42701

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

pytorch_sphinx_theme2/custom_directives.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,10 @@
1212

1313
try:
1414
import sphinx_gallery
15-
1615
HAS_SPHINX_GALLERY = True
1716
except ImportError:
1817
HAS_SPHINX_GALLERY = False
1918

20-
2119
class 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]

0 commit comments

Comments
 (0)