From 9166eb2cc7ad4b57983396fb0632e7b0db15e278 Mon Sep 17 00:00:00 2001 From: Moritz Schreiber <68053396+mosc9575@users.noreply.github.com> Date: Mon, 22 Jul 2024 15:00:39 +0200 Subject: [PATCH] Fix copybutton for multi line examples in double digit ipython cells (#9264) * Update conf.py * Update whats-new.rst --- doc/conf.py | 2 +- doc/whats-new.rst | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/doc/conf.py b/doc/conf.py index d0a26e19a84..630563f81e2 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -97,7 +97,7 @@ } # sphinx-copybutton configurations -copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: " +copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.{3,}: | {5,8}: " copybutton_prompt_is_regexp = True # nbsphinx configurations diff --git a/doc/whats-new.rst b/doc/whats-new.rst index e14b064aeda..30df104f168 100644 --- a/doc/whats-new.rst +++ b/doc/whats-new.rst @@ -88,7 +88,8 @@ Documentation By `Jessica Scheick `_. - Improvements to Zarr & chunking docs (:pull:`9139`, :pull:`9140`, :pull:`9132`) By `Maximilian Roos `_. - +- Fix copybutton for multi line examples and double digit ipython cell numbers (:pull:`9264`). + By `Moritz Schreiber `_. Internal Changes ~~~~~~~~~~~~~~~~