We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d944070 commit ebe73c9Copy full SHA for ebe73c9
src/sage_docbuild/conf.py
@@ -259,7 +259,8 @@ def set_intersphinx_mappings(app, config):
259
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html
260
copybutton_prompt_text = r"sage: |[.][.][.][.]: |\$ "
261
copybutton_prompt_is_regexp = True
262
-copybutton_exclude = '.linenos, .gp, .c' # exclude comments
+copybutton_exclude = '.linenos, .c1' # exclude single comments (in particular, # optional!)
263
+copybutton_only_copy_prompt_lines = True
264
265
# Options for HTML output
266
# -----------------------
0 commit comments