From 1ac9a016f45d5453e8f53d1b53e48d6fc787b37a Mon Sep 17 00:00:00 2001 From: Ciro Santilli Date: Fri, 19 Dec 2014 10:47:11 +0100 Subject: Expose failure to normalize whitespaces --- test/normalize.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'test') diff --git a/test/normalize.py b/test/normalize.py index 6cb11b4..29e404b 100644 --- a/test/normalize.py +++ b/test/normalize.py @@ -115,8 +115,12 @@ def normalize_html(html): Return normalized form of HTML which ignores insignificant output differences: - * Multiple inner whitespaces are collapsed to a single space (except - in pre tags). + Multiple inner whitespaces are collapsed to a single space (except + in pre tags): + + >>> normalize_html("

a \t\nb

") + u'

a b

' + * Outer whitespace (outside block-level tags) is removed. * Self-closing tags are converted to open tags. * Attributes are sorted and lowercased. -- cgit v1.2.3