Skip to content

Commit 0f471e1

Browse files
committed
More agressive breaking of URLs
1 parent 16a0e01 commit 0f471e1

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

advanced/advanced_python/index.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -644,14 +644,14 @@ and ``__name__`` (the full name of the function), and
644644
value of the function available in Python 3). This can be done
645645
automatically by using `functools.update_wrapper`.
646646

647-
.. sidebar:: `functools.update_wrapper(wrapper, wrapped) <functools.update_wrapper>`
647+
.. topic:: `functools.update_wrapper(wrapper, wrapped) <functools.update_wrapper>`
648648

649649
"Update a wrapper function to look like the wrapped function."
650650

651651
::
652652
653653
>>> import functools
654-
>>> def better_replacing_decorator_with_args(arg):
654+
>>> def replacing_decorator_with_args(arg):
655655
... print("defining the decorator")
656656
... def _decorator(function):
657657
... print("doing decoration, %r" % arg)
@@ -660,7 +660,7 @@ automatically by using `functools.update_wrapper`.
660660
... return function(*args, **kwargs)
661661
... return functools.update_wrapper(_wrapper, function)
662662
... return _decorator
663-
>>> @better_replacing_decorator_with_args("abc")
663+
>>> @replacing_decorator_with_args("abc")
664664
... def function():
665665
... "extensive documentation"
666666
... print("inside function")

themes/scipy_lectures/static/nature.css_t

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -519,6 +519,10 @@ div.body ul, div.body ol, div.body blockquote {
519519
margin-top : .3em;
520520
}
521521

522+
div.body a.reference.external {
523+
overflow-wrap: break-word;
524+
}
525+
522526
div.body img {
523527
/* Required for clean overlap in left or right align */
524528
position: relative;

0 commit comments

Comments
 (0)