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

Skip to content

Commit 659261e

Browse files
committed
Merge pull request #5826 from anntzer/strip-spaces-in-properties-doc
Strip spaces in properties doc after newline.
1 parent 007a8c8 commit 659261e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/artist.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1094,7 +1094,7 @@ def get_valid_values(self, attr):
10941094

10951095
match = self._get_valid_values_regex.search(docstring)
10961096
if match is not None:
1097-
return match.group(1).replace('\n', ' ')
1097+
return re.sub("\n *", " ", match.group(1))
10981098
return 'unknown'
10991099

11001100
def _get_setters_and_targets(self):

0 commit comments

Comments
 (0)