Skip to content

Commit ae9b185

Browse files
committed
add missing newlines before sphinx code blocks
1 parent cc206ba commit ae9b185

File tree

2 files changed

+13
-6
lines changed

2 files changed

+13
-6
lines changed

manim/mobject/geometry.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -946,6 +946,7 @@ def base(self):
946946
Examples
947947
--------
948948
::
949+
949950
>>> arrow = Arrow(np.array([0, 0, 0]), np.array([2, 0, 0]), buff=0)
950951
>>> arrow.tip.base.round(2) + 0. # add 0. to avoid negative 0 in output
951952
array([1.65, 0. , 0. ])
@@ -960,6 +961,7 @@ def tip_point(self):
960961
Examples
961962
--------
962963
::
964+
963965
>>> arrow = Arrow(np.array([0, 0, 0]), np.array([2, 0, 0]), buff=0)
964966
>>> arrow.tip.tip_point.round(2) + 0.
965967
array([2., 0., 0.])
@@ -974,6 +976,7 @@ def vector(self):
974976
Examples
975977
--------
976978
::
979+
977980
>>> arrow = Arrow(np.array([0, 0, 0]), np.array([2, 2, 0]), buff=0)
978981
>>> arrow.tip.vector.round(2) + 0.
979982
array([0.25, 0.25, 0. ])
@@ -988,6 +991,7 @@ def tip_angle(self):
988991
Examples
989992
--------
990993
::
994+
991995
>>> arrow = Arrow(np.array([0, 0, 0]), np.array([1, 1, 0]), buff=0)
992996
>>> round(arrow.tip.tip_angle, 5) == round(PI/4, 5)
993997
True
@@ -1002,6 +1006,7 @@ def tip_length(self):
10021006
Examples
10031007
--------
10041008
::
1009+
10051010
>>> arrow = Arrow(np.array([0, 0, 0]), np.array([1, 2, 0]))
10061011
>>> round(arrow.tip.tip_length, 3)
10071012
0.35

manim/utils/color.py

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -97,25 +97,27 @@
9797

9898
class Colors(Enum):
9999
"""A list of pre-defined colors.
100-
100+
101101
Examples
102102
--------
103103
The preferred way of using these colors is
104-
104+
105105
.. code-block:: python
106+
106107
import manim.utils.color as C
107108
C.WHITE # -> '#FFFFFF'
108-
109+
109110
Note this way uses the name of the colors in UPPERCASE.
110-
111+
111112
Alternatively, you can also import this Enum directly and use its members
112113
directly, through the use of :code:`color.value`. Note this way uses the
113114
name of the colors in lowercase.
114-
115+
115116
.. code-block:: python
117+
116118
from manim.utils.color import Colors
117119
Colors.white.value # -> '#FFFFFF'
118-
120+
119121
"""
120122

121123
dark_blue = "#236B8E"

0 commit comments

Comments
 (0)