Skip to content

Commit 9166eb2

Browse files
authored
Fix copybutton for multi line examples in double digit ipython cells (#9264)
* Update conf.py * Update whats-new.rst
1 parent 10bb94c commit 9166eb2

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

doc/conf.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
}
9898

9999
# sphinx-copybutton configurations
100-
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.\.\.: | {5,8}: "
100+
copybutton_prompt_text = r">>> |\.\.\. |\$ |In \[\d*\]: | {2,5}\.{3,}: | {5,8}: "
101101
copybutton_prompt_is_regexp = True
102102

103103
# nbsphinx configurations

doc/whats-new.rst

+2-1
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,8 @@ Documentation
8888
By `Jessica Scheick <https://github.com/jessicas11>`_.
8989
- Improvements to Zarr & chunking docs (:pull:`9139`, :pull:`9140`, :pull:`9132`)
9090
By `Maximilian Roos <https://github.com/max-sixty>`_.
91-
91+
- Fix copybutton for multi line examples and double digit ipython cell numbers (:pull:`9264`).
92+
By `Moritz Schreiber <https://github.com/mosc9575>`_.
9293

9394
Internal Changes
9495
~~~~~~~~~~~~~~~~

0 commit comments

Comments
 (0)