Skip to content

Commit

Permalink
Strip space from pasted text (#1142)
Browse files Browse the repository at this point in the history
  • Loading branch information
chengfangho authored Jul 22, 2023
1 parent a5defb4 commit d6edccf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = "\\"

0 comments on commit d6edccf

Please sign in to comment.