From bd6467f51f98bb3f93e5aa8195eb439aa0dddb87 Mon Sep 17 00:00:00 2001 From: Leonard Richardson Date: Tue, 16 Jan 2024 13:33:07 -0500 Subject: Correct issues with a docstring. [bug=2016190] --- bs4/formatter.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bs4/formatter.py b/bs4/formatter.py index c821318..9fa1b57 100644 --- a/bs4/formatter.py +++ b/bs4/formatter.py @@ -51,7 +51,7 @@ class Formatter(EntitySubstitution): void_element_close_prefix='/', cdata_containing_tags=None, empty_attributes_are_booleans=False, indent=1, ): - """Constructor. + r"""Constructor. :param language: This should be Formatter.XML if you are formatting XML markup and Formatter.HTML if you are formatting HTML markup. @@ -76,7 +76,7 @@ class Formatter(EntitySubstitution): negative, or "" will only insert newlines. Using a positive integer indent indents that many spaces per level. If indent is a string (such as "\t"), that string - is used to indent each level. The default behavior to + is used to indent each level. The default behavior is to indent one space per level. """ self.language = language -- cgit v1.2.3