8000 Merge pull request #23134 from QuLogic/no-deprecation-newline · matplotlib/matplotlib@b05b8f0 · GitHub
[go: up one dir, main page]

Skip to content

Commit b05b8f0

Browse files
authored
Merge pull request #23134 from QuLogic/no-deprecation-newline
Remove newline from start of deprecation warnings
2 parents e49d6b6 + 4ef97b9 commit b05b8f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/_api/deprecation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ def _generate_deprecation_warning(
3232
removal = f"in {removal}" if removal else "two minor releases later"
3333
if not message:
3434
message = (
35-
("\nThe %(name)s %(obj_type)s" if obj_type else "%(name)s")
35+
("The %(name)s %(obj_type)s" if obj_type else "%(name)s")
3636
+ (" will be deprecated in a future version"
3737
if pending else
3838
(" was deprecated in Matplotlib %(since)s"

0 commit comments

Comments
 (0)
0