8000 [doc build] testing a change in sphinx-gallery/sphinx-gallery#191 · scikit-learn/scikit-learn@678a276 · GitHub
[go: up one dir, main page]

Skip to content

Commit 678a276

Browse files
committed
[doc build] testing a change in sphinx-gallery/sphinx-gallery#191
1 parent 094d65a commit 678a276

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

doc/sphinxext/sphinx_gallery/gen_rst.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,8 @@ def generate_file_rst(fname, target_dir, src_dir, gallery_conf):
585585
example_rst += codestr2rst(bcontent) + '\n'
586586

587587
else:
588-
example_rst += text2string(bcontent) + '\n'
588+
# example_rst += text2string(bcontent) + '\n'
589+
example_rst += bcontent + '\n\n'
589590

590591
clean_modules()
591592

doc/sphinxext/sphinx_gallery/notebook.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,8 @@ def fill_notebook(work_notebook, script_blocks):
170170
if blabel == 'code':
171171
add_code_cell(work_notebook, bcontent)
172172
else:
173-
add_markdown_cell(work_notebook, text2string(bcontent))
173+
# add_markdown_cell(work_notebook, text2string(bcontent))
174+
add_markdown_cell(work_notebook, bcontent + '\n')
174175

175176

176177
def save_notebook(work_notebook, write_file):

0 commit comments

Comments
 (0)
0