diff options
author | Leonard Richardson <leonardr@segfault.org> | 2024-01-16 13:33:07 -0500 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2024-01-16 13:33:07 -0500 |
commit | bd6467f51f98bb3f93e5aa8195eb439aa0dddb87 (patch) | |
tree | dbdceb3d6539ea07fa104273be3a19b431685487 /bs4/formatter.py | |
parent | 32c1736b9c8189635bd21afd3361f96c00d174f7 (diff) |
Correct issues with a docstring. [bug=2016190]
Diffstat (limited to 'bs4/formatter.py')
-rw-r--r-- | bs4/formatter.py | 4 |
1 files 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 |