diff options
author | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-15 17:03:37 -0500 |
---|---|---|
committer | Leonard Richardson <leonard.richardson@canonical.com> | 2012-02-15 17:03:37 -0500 |
commit | 87747b712cfe63d173332f06ee1ba2bf9adf9ce5 (patch) | |
tree | 1829d574032666de65230c2c9df6f1aa522c1b05 /bs4/tests/test_htmlparser.py | |
parent | ac197c5ad0ffe0795436cb54e0766640d12c6a31 (diff) |
Added a kind of hacky way to interpret the restriction class='foo bar'. Stop generating a space before the slash that closes an empty-element tag.
Diffstat (limited to 'bs4/tests/test_htmlparser.py')
-rw-r--r-- | bs4/tests/test_htmlparser.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bs4/tests/test_htmlparser.py b/bs4/tests/test_htmlparser.py index 9ba7df7..ea94363 100644 --- a/bs4/tests/test_htmlparser.py +++ b/bs4/tests/test_htmlparser.py @@ -42,7 +42,7 @@ class TestHTMLParserTreeBuilder(TestLXMLBuilder): "<p>A <meta> tag</p>", "<p>A <meta> tag</meta></p>") self.assertSoupEquals( - "<p>Foo<br/>bar</p>", "<p>Foo<br />bar</p>") + "<p>Foo<br/>bar</p>", "<p>Foo<br/>bar</p>") def test_hex_entities_in_text(self): # XXX This tests a workaround for a bug in HTMLParser. |