From f2de1de8bb641c336bcdac4fa5c4357307f03859 Mon Sep 17 00:00:00 2001 From: hauntsaninja Date: Wed, 2 Nov 2022 01:08:50 -0700 Subject: [PATCH] Fix copying of multiline snippets For instance, the macOS build command --- conf.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/conf.py b/conf.py index 0a24675b0..c914ccc1e 100644 --- a/conf.py +++ b/conf.py @@ -107,3 +107,5 @@ # 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 = "$" +# https://sphinx-copybutton.readthedocs.io/en/latest/use.html#honor-line-continuation-characters-when-copying-multline-snippets +copybutton_line_continuation_character = "\\"