10000 Strip spaces in properties doc after newline. · matplotlib/matplotlib@e190bf7 · GitHub
[go: up one dir, main page]

Skip to content

Commit e190bf7

Browse files
committed
Strip spaces in properties doc after newline.
Snippet of output of `pydoc pylab.plot`: Before: ``` linestyle or ls: ['solid' | 'dashed', 'dashdot', 'dotted' | (offset, on-off-dash-seq) | ``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` | ``'None'`` | ``' '`` | ``''``] ``` After: ``` linestyle or ls: ['solid' | 'dashed', 'dashdot', 'dotted' | (offset, on-off-dash-seq) | ``'-'`` | ``'--'`` | ``'-.'`` | ``':'`` | ``'None'`` | ``' '`` | ``''``] ```
1 parent 90455d8 commit e190bf7

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
@@ -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