8000 Fix newlines · matplotlib/matplotlib@93e873b · GitHub
[go: up one dir, main page]

Skip to content

Commit 93e873b

Browse files
authored
Fix newlines
1 parent 6f4058b commit 93e873b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/cbook/deprecation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,9 +250,9 @@ def wrapper(*args, **kwargs):
250250

251251
message = message.strip()
252252
# Add "Deprecated" to top of docstring
253-
new_doc = '[*Deprecated*] {old_doc}\n\n'.format(old_doc=old_doc)
253+
new_doc = '[*Deprecated*] {old_doc}\n'.format(old_doc=old_doc)
254254
# Add a notes section if one isn't already present
255-
note_section = 'Notes\n-----'
255+
note_section = '\nNotes\n-----'
256256
if note_section not in new_doc:
257257
new_doc += note_section
258258
# Add deprecated message

0 commit comments

Comments
 (0)
0