aboutsummaryrefslogtreecommitdiffstats
path: root/tests/safe_mode/inline-html-simple.html
diff options
context:
space:
mode:
authorWaylan Limberg <waylan@gmail.com>2008-08-22 23:38:39 -0400
committerWaylan Limberg <waylan@gmail.com>2008-08-22 23:38:39 -0400
commitfa014ac7743836db611713ca630a4919e8d5fa3d (patch)
tree5a08a0fdb39697369705a1e3b918468c08810b95 /tests/safe_mode/inline-html-simple.html
parente12a10d1754a13cd3a7f5b341d26ea17035105d8 (diff)
downloadmarkdown-fa014ac7743836db611713ca630a4919e8d5fa3d.tar.gz
markdown-fa014ac7743836db611713ca630a4919e8d5fa3d.tar.bz2
markdown-fa014ac7743836db611713ca630a4919e8d5fa3d.zip
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.
Diffstat (limited to 'tests/safe_mode/inline-html-simple.html')
-rw-r--r--tests/safe_mode/inline-html-simple.html24
1 files changed, 8 insertions, 16 deletions
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
&lt;/div&gt;</p>
<p>This should be a code block, though:</p>
-<pre>
-<code>&lt;div&gt;
+<pre><code>&lt;div&gt;
foo
&lt;/div&gt;
-</code>
-</pre>
+</code></pre>
<p>As should this:</p>
-<pre>
-<code>&lt;div&gt;foo&lt;/div&gt;
-</code>
-</pre>
+<pre><code>&lt;div&gt;foo&lt;/div&gt;
+</code></pre>
<p>Now, nested:</p>
<p>&lt;div&gt;
&lt;div&gt;
@@ -30,17 +26,13 @@ Blah
Blah
--&gt;</p>
<p>Code block:</p>
-<pre>
-<code>&lt;!-- Comment --&gt;
-</code>
-</pre>
+<pre><code>&lt;!-- Comment --&gt;
+</code></pre>
<p>Just plain comment, with trailing spaces on the line:</p>
<p>&lt;!-- foo --&gt;</p>
<p>Code:</p>
-<pre>
-<code>&lt;hr /&gt;
-</code>
-</pre>
+<pre><code>&lt;hr /&gt;
+</code></pre>
<p>Hr's:</p>
<p>&lt;hr&gt;</p>
<p>&lt;hr/&gt;</p>