Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 43c14a0

Browse filesBrowse files
committed
Merge pull request #5826 from anntzer/strip-spaces-in-properties-doc
Strip spaces in properties doc after newline.
2 parents 90455d8 + e190bf7 commit 43c14a0
Copy full SHA for 43c14a0

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/artist.py

Copy file name to clipboardExpand all lines: lib/matplotlib/artist.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1205,7 +1205,7 @@ def get_valid_values(self, attr):
12051205

12061206
match = self._get_valid_values_regex.search(docstring)
12071207
if match is not None:
1208-
return match.group(1).replace('\n', ' ')
1208+
return re.sub("\n *", " ", match.group(1))
12091209
return 'unknown'
12101210

12111211
def _get_setters_and_targets(self):

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.