8000 Fix copying of multiline snippets (#981) · python/devguide@bc4da6b · GitHub
[go: up one dir, main page]

Skip to content

Commit bc4da6b

Browse files
authored
Fix copying of multiline snippets (#981)
For instance, the macOS build command
1 parent 3de7027 commit bc4da6b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

conf.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,5 @@
107107
# Strip the dollar prompt when copying code
108108
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#strip-and-configure-input-prompts-for-code-cells
109109
copybutton_prompt_text = "$"
110+
# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#honor-line-continuation-characters-when-copying-multline-snippets
111+
copybutton_line_continuation_character = "\\"

0 commit comments

Comments
 (0)
0