Skip to content

Commit

Permalink
Let dedent handle indents.
Browse files Browse the repository at this point in the history
  • Loading branch information
SpacemanPaul committed Jul 23, 2024
1 parent 97b7334 commit 5be7175
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion deprecat/sphinx.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def __call__(self, wrapped):
width = self.line_length - 3 if self.line_length > 3 else 2 ** 16
reason=self.reason
if self.remove_version!="":
reason += f'\n\n Warning: This deprecated feature will be removed in version {self.remove_version}'
reason += f'\n\nWarning: This deprecated feature will be removed in version {self.remove_version}'
reason = textwrap.dedent(reason).strip()

if self.deprecated_args is None:
Expand Down

0 comments on commit 5be7175

Please sign in to comment.