Skip to content

Commit 10acc0f

Browse files
author
Matthias Koeppe
committed
src/sage_docbuild/conf.py: Include plain Python prompts in copybutton config
1 parent d318a49 commit 10acc0f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/sage_docbuild/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def set_intersphinx_mappings(app, config):
305305
multidocs_is_master = True
306306

307307
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html
308-
copybutton_prompt_text = r"sage: |[.][.][.][.]: |\$ "
308+
copybutton_prompt_text = r"sage: |[.][.][.][.]: |>>> |[.][.][.] |\$ "
309309
copybutton_prompt_is_regexp = True
310310
copybutton_exclude = '.linenos, .c1' # exclude single comments (in particular, # optional!)
311311
copybutton_only_copy_prompt_lines = True

0 commit comments

Comments
 (0)