Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit de97fb2

Browse files
committed
Workaround wrong indentation of property lists
1 parent c09f726 commit de97fb2

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

lib/matplotlib/artist.py

Lines changed: 2 additions & 2 deletions
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
@@ -1470,7 +1470,7 @@ def kwdoc(a):
14701470
hardcopy = matplotlib.rcParams['docstring.hardcopy']
14711471
if hardcopy:
14721472
return '\n'.join(ArtistInspector(a).pprint_setters_rest(
1473-
leadingspace=2))
1473+
leadingspace=4))
14741474
else:
14751475
return '\n'.join(ArtistInspector(a).pprint_setters(leadingspace=2))
14761476

0 commit comments

Comments
 (0)