Skip to content

Commit 4a57276

Browse files
committed
Do not use space in directive calling.
This is non standard, and does not work with all rst parsers. And those are the only few while there is approximatively 1200 directive that don't use space in the codebase
1 parent 8ba4f2b commit 4a57276

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

lib/matplotlib/axes/_base.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4215,7 +4215,7 @@ def set_navigate_mode(self, b):
42154215
"""
42164216
Set the navigation toolbar button status.
42174217
4218-
.. warning ::
4218+
.. warning::
42194219
this is not a user-API function.
42204220
42214221
"""

lib/matplotlib/cm.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ def unregister_cmap(name):
299299
If the named colormap is not registered, returns with no error, raises
300300
if you try to de-register a default colormap.
301301
302-
.. warning ::
302+
.. warning::
303303
304304
Colormap names are currently a shared namespace that may be used
305305
by multiple packages. Use `unregister_cmap` only if you know you

lib/matplotlib/figure.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1674,7 +1674,7 @@ def subplot_mosaic(self, mosaic, *, sharex=False, sharey=False,
16741674
16751675
This is a helper function to build complex GridSpec layouts visually.
16761676
1677-
.. note ::
1677+
.. note::
16781678
16791679
This API is provisional and may be revised in the future based on
16801680
early user feedback.

lib/matplotlib/pyplot.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1442,7 +1442,7 @@ def subplot_mosaic(mosaic, *, sharex=False, sharey=False,
14421442
14431443
This is a helper function to build complex GridSpec layouts visually.
14441444
1445-
.. note ::
1445+
.. note::
14461446
14471447
This API is provisional and may be revised in the future based on
14481448
early user feedback.

tutorials/text/mathtext.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@
111111
112112
r'$(\frac{5 - \frac{1}{x}}{4})$'
113113
114-
.. math ::
114+
.. math::
115115
116116
(\frac{5 - \frac{1}{x}}{4})
117117
@@ -120,7 +120,7 @@
120120
121121
r'$\left(\frac{5 - \frac{1}{x}}{4}\right)$'
122122
123-
.. math ::
123+
.. math::
124124
125125
\left(\frac{5 - \frac{1}{x}}{4}\right)
126126
@@ -130,7 +130,7 @@
130130
131131
r'$\sqrt{2}$'
132132
133-
.. math ::
133+
.. math::
134134
135135
\sqrt{2}
136136
@@ -140,7 +140,7 @@
140140
141141
r'$\sqrt[3]{x}$'
142142
143-
.. math ::
143+
.. math::
144144
145145
\sqrt[3]{x}
146146

0 commit comments

Comments
 (0)