Skip to content

Commit

Permalink
Fix copybutton for multi line examples in double digit ipython cells (#…
Browse files Browse the repository at this point in the history
…9264)

* Update conf.py

* Update whats-new.rst
  • Loading branch information
mosc9575 authored Jul 22, 2024
1 parent 10bb94c commit 9166eb2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
3 changes: 2 additions & 1 deletion doc/whats-new.rst
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,8 @@ Documentation
By `Jessica Scheick <https://github.com/jessicas11>`_.
- Improvements to Zarr & chunking docs (:pull:`9139`, :pull:`9140`, :pull:`9132`)
By `Maximilian Roos <https://github.com/max-sixty>`_.

- Fix copybutton for multi line examples and double digit ipython cell numbers (:pull:`9264`).
By `Moritz Schreiber <https://github.com/mosc9575>`_.

Internal Changes
~~~~~~~~~~~~~~~~
Expand Down

0 comments on commit 9166eb2

Please sign in to comment.