diff options
author | Leonard Richardson <leonardr@segfault.org> | 2023-03-21 11:27:08 -0400 |
---|---|---|
committer | Leonard Richardson <leonardr@segfault.org> | 2023-03-21 11:27:08 -0400 |
commit | 3be39f46ec502fe20d5a95ed3292d0dccd3b1aec (patch) | |
tree | 01a8f5556c32dadc4e47f639d0a4dac078adeab2 /bs4/tests/__init__.py | |
parent | d923a1cc966a4faa966f5d6f0a1fe09bd482949a (diff) |
Reimplemented the pretty-print algorithm to remove recursive function calls.
Diffstat (limited to 'bs4/tests/__init__.py')
-rw-r--r-- | bs4/tests/__init__.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/bs4/tests/__init__.py b/bs4/tests/__init__.py index d8b3b9b..dbb1593 100644 --- a/bs4/tests/__init__.py +++ b/bs4/tests/__init__.py @@ -551,8 +551,8 @@ Hello, world! """Whitespace must be preserved in <pre> and <textarea> tags, even if that would mean not prettifying the markup. """ - pre_markup = "<pre> </pre>" - textarea_markup = "<textarea> woo\nwoo </textarea>" + pre_markup = "<pre>a z</pre>\n" + textarea_markup = "<textarea> woo\nwoo </textarea>\n" self.assert_soup(pre_markup) self.assert_soup(textarea_markup) @@ -563,7 +563,7 @@ Hello, world! assert soup.textarea.prettify() == textarea_markup soup = self.soup("<textarea></textarea>") - assert soup.textarea.prettify() == "<textarea></textarea>" + assert soup.textarea.prettify() == "<textarea></textarea>\n" def test_nested_inline_elements(self): """Inline elements can be nested indefinitely.""" |