From d6edccf9573f9909f9e188f0d9d73fefe054cf8c Mon Sep 17 00:00:00 2001 From: chengfangho <87441472+chengfangho@users.noreply.github.com> Date: Fri, 21 Jul 2023 22:12:09 -0700 Subject: [PATCH] Strip space from pasted text (#1142) --- conf.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/conf.py b/conf.py index 2c1add6c33..15823481b0 100644 --- a/conf.py +++ b/conf.py @@ -166,6 +166,6 @@ def _asset_hash(path: os.PathLike[str]) -> str: # Strip the dollar prompt when copying code # https://sphinx-copybutton.readthedocs.io/en/latest/use.html#strip-and-configure-input-prompts-for-code-cells -copybutton_prompt_text = "$" +copybutton_prompt_text = "$ " # https://sphinx-copybutton.readthedocs.io/en/latest/use.html#honor-line-continuation-characters-when-copying-multline-snippets copybutton_line_continuation_character = "\\"