Skip to content

Commit deff898

Browse files
committed
Fix doc regression
Only apply logic to handle multiple expressions on a single line if the node is an expression.
1 parent a830c4e commit deff898

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

docs/src/py/notebook.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -491,9 +491,9 @@ def execute(cmd, no_except=True, inline=False, init='', g=None):
491491
command = ''
492492
for i, line in enumerate(stmt, 0):
493493
if i == 0:
494-
stmt[i] = '>>> ' + line[col_start:col_end]
494+
stmt[i] = '>>> ' + (line[col_start:col_end] if isinstance(node, ast.Expr) else line)
495495
else:
496-
stmt[i] = '... ' + line[col_start:col_end]
496+
stmt[i] = '... ' + (line[col_start:col_end] if isinstance(node, ast.Expr) else line)
497497
command += '\n'.join(stmt)
498498
if isinstance(node, AST_BLOCKS):
499499
command += '\n... '

docs/theme/assets/coloraide-extras/extra-notebook-C-gQPRdO.js renamed to docs/theme/assets/coloraide-extras/extra-notebook-BvWUnGuN.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/theme/assets/coloraide-extras/extra-notebook-C-gQPRdO.js.map renamed to docs/theme/assets/coloraide-extras/extra-notebook-BvWUnGuN.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

mkdocs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -311,7 +311,7 @@ extra_javascript:
311311
- https://unpkg.com/mermaid@10.6.1/dist/mermaid.min.js
312312
- playground-config-4f0f586c.js
313313
- https://cdn.jsdelivr.net/pyodide/v0.26.2/full/pyodide.js
314-
- assets/coloraide-extras/extra-notebook-C-gQPRdO.js
314+
- assets/coloraide-extras/extra-notebook-BvWUnGuN.js
315315

316316
extra:
317317
social:

0 commit comments

Comments
 (0)