Skip to content

Commit cff1975

Browse files
jklymakMeeseeksDev[bot]
authored and
MeeseeksDev[bot]
committed
Backport PR #10364: Workaround property list indent
1 parent b67df2d commit cff1975

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/artist.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1253,7 +1253,7 @@ def pprint_setters(self, prop=None, leadingspace=2):
12531253
lines.append('%s%s: %s' % (pad, name, accepts))
12541254
return lines
12551255

1256-
def pprint_setters_rest(self, prop=None, leadingspace=2):
1256+
def pprint_setters_rest(self, prop=None, leadingspace=4):
12571257
"""
12581258
If *prop* is *None*, return a list of strings of all settable
12591259
properties and their valid values. Format the output for ReST
@@ -1476,7 +1476,7 @@ def kwdoc(a):
14761476
hardcopy = matplotlib.rcParams['docstring.hardcopy']
14771477
if hardcopy:
14781478
return '\n'.join(ArtistInspector(a).pprint_setters_rest(
1479-
leadingspace=2))
1479+
leadingspace=4))
14801480
else:
14811481
return '\n'.join(ArtistInspector(a).pprint_setters(leadingspace=2))
14821482

0 commit comments

Comments
 (0)