From a5cc42b5e441af8f34a122624d136cfcb772c65e Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 22 Aug 2008 17:37:37 -0400 Subject: Fixed Ticket 13. Raw block-level html are no longer being inserted into

tags. Also edited numerious tests that were expecting wrong output - they now expect correct output. Note that a few **still fail** because the output before moving to ELementTree wasn't correct either. So I set the expected output to what I think it should be so we don't forget about it later. I should also note that the 'safe-mode' tests are failing. However, I believe the current expected output is correct as it is valid html. Interestingly, these tests passed prior to this fix. We'll need to special case safe-mode here. --- tests/misc/CRLF_line_ends.html | 4 ++-- tests/misc/comments.html | 5 +++-- tests/misc/div.html | 7 ++++--- tests/misc/hash.html | 10 ++++++---- tests/misc/mismatched-tags.html | 6 ++---- tests/misc/more_comments.html | 6 ++---- tests/misc/multi-line-tags.html | 5 +++-- tests/misc/multiline-comments.html | 15 +++++++++------ tests/misc/php.html | 13 ++++++++----- tests/misc/pre.html | 9 +++++---- tests/misc/span.html | 8 +++++--- 11 files changed, 49 insertions(+), 39 deletions(-) (limited to 'tests/misc') diff --git a/tests/misc/CRLF_line_ends.html b/tests/misc/CRLF_line_ends.html index c650e58..a72b1ca 100644 --- a/tests/misc/CRLF_line_ends.html +++ b/tests/misc/CRLF_line_ends.html @@ -1,4 +1,4 @@

foo

-

+
bar -

\ No newline at end of file +
\ No newline at end of file diff --git a/tests/misc/comments.html b/tests/misc/comments.html index 7a03e53..005a755 100644 --- a/tests/misc/comments.html +++ b/tests/misc/comments.html @@ -1,4 +1,5 @@

X<0

X>0

-

-

as if

\ No newline at end of file + + +
as if
\ No newline at end of file diff --git a/tests/misc/div.html b/tests/misc/div.html index 634136c..acd8eaf 100644 --- a/tests/misc/div.html +++ b/tests/misc/div.html @@ -1,5 +1,6 @@ -

\ No newline at end of file diff --git a/tests/misc/hash.html b/tests/misc/hash.html index 5e8bffb..1865994 100644 --- a/tests/misc/hash.html +++ b/tests/misc/hash.html @@ -1,9 +1,11 @@

a

-

+
 #!/usr/bin/python
-hello

+hello
+

a

-

+
 !/usr/bin/python
-hello

+hello
+

a

\ No newline at end of file diff --git a/tests/misc/mismatched-tags.html b/tests/misc/mismatched-tags.html index edeba33..792a8b9 100644 --- a/tests/misc/mismatched-tags.html +++ b/tests/misc/mismatched-tags.html @@ -1,5 +1,3 @@ -

Some text

some more text
+

Some text

some more text
-and a bit more - -

\ No newline at end of file +

and a bit more

diff --git a/tests/misc/more_comments.html b/tests/misc/more_comments.html index d4430cd..37436c5 100644 --- a/tests/misc/more_comments.html +++ b/tests/misc/more_comments.html @@ -1,9 +1,7 @@ -

-

+--> + +

foo -

-

+

+ +
+

foo

-

\ No newline at end of file +
\ No newline at end of file diff --git a/tests/misc/php.html b/tests/misc/php.html index 66bc8d1..6d91404 100644 --- a/tests/misc/php.html +++ b/tests/misc/php.html @@ -1,9 +1,12 @@ -

-This should have a p tag +

This should have a p tag

+ + + +
This shouldn't
+ + -

-

This shouldn't

-

<?php echo "not_block_level";?>

diff --git a/tests/misc/pre.html b/tests/misc/pre.html index 5ac9799..a44ae12 100644 --- a/tests/misc/pre.html +++ b/tests/misc/pre.html @@ -1,12 +1,13 @@ -

+
 
 aaa
 
 bbb
-

-

+
+ +
 * and this is pre-formatted content
 * and it should be printed just like this
 * and not formatted as a list
 
-

\ No newline at end of file +
\ No newline at end of file diff --git a/tests/misc/span.html b/tests/misc/span.html index dadf5df..bafcf0f 100644 --- a/tests/misc/span.html +++ b/tests/misc/span.html @@ -1,4 +1,6 @@

Foo bar Baz

-

*foo*

-

Foo *bar* Baz

-

Foo bar Baz

+
*foo*
+ +
Foo *bar* Baz
+ +

Foo bar Baz

\ No newline at end of file -- cgit v1.2.3