From fa014ac7743836db611713ca630a4919e8d5fa3d Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Fri, 22 Aug 2008 23:38:39 -0400 Subject: Fixed Ticket 11. Disabled ``indenteTree`` for `pre` and `code` tags. Now whitespace is preserved in codeblocks. As a side-benefit, this also solved the issue with the safe-mode tests failing. All tests incorectly altered at ElementTree conversion have been corrected for this bug. Any remaining tests that fail are unrelated to this. --- tests/safe_mode/inline-html-simple.html | 24 ++++++++---------------- 1 file changed, 8 insertions(+), 16 deletions(-) (limited to 'tests/safe_mode') diff --git a/tests/safe_mode/inline-html-simple.html b/tests/safe_mode/inline-html-simple.html index ceaaa90..ad19a77 100644 --- a/tests/safe_mode/inline-html-simple.html +++ b/tests/safe_mode/inline-html-simple.html @@ -3,17 +3,13 @@ foo </div>

This should be a code block, though:

-
-<div>
+
<div>
     foo
 </div>
-
-
+

As should this:

-
-<div>foo</div>
-
-
+
<div>foo</div>
+

Now, nested:

<div> <div> @@ -30,17 +26,13 @@ Blah Blah -->

Code block:

-
-<!-- Comment -->
-
-
+
<!-- Comment -->
+

Just plain comment, with trailing spaces on the line:

<!-- foo -->

Code:

-
-<hr />
-
-
+
<hr />
+

Hr's:

<hr>

<hr/>

-- cgit v1.2.3