aboutsummaryrefslogtreecommitdiffstats
path: root/tests/misc
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/misc
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/misc')
-rw-r--r--tests/misc/arabic.html15
-rw-r--r--tests/misc/bidi.html15
-rw-r--r--tests/misc/blockquote.html9
-rw-r--r--tests/misc/br.html6
-rw-r--r--tests/misc/code-first-line.html6
-rw-r--r--tests/misc/multi-test.html9
-rw-r--r--tests/misc/some-test.html84
7 files changed, 61 insertions, 83 deletions
diff --git a/tests/misc/arabic.html b/tests/misc/arabic.html
index 830d62a..073febb 100644
--- a/tests/misc/arabic.html
+++ b/tests/misc/arabic.html
@@ -5,13 +5,10 @@
<p>تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.</p>
<h2>أمثلة</h2>
<p>مثال Hello World!</p>
-<pre>
- <code>print "Hello World!"
-</code>
-</pre>
+<pre><code>print "Hello World!"
+</code></pre>
<p>مثال لاستخراج المضروب Factorial :</p>
-<pre>
- <code>num = 1
+<pre><code>num = 1
x = raw_input('Insert the number please ')
x = int(x)
@@ -23,13 +20,11 @@ else:
x = x-1
print num
-</code>
-</pre>
+</code></pre>
<h2>وصلات خارجية</h2>
<ul>
<li>
<a href="http://www.python.org">الموقع الرسمي للغة بايثون</a>
</li>
</ul>
-<p> بذرة حاس </p>
-
+<p> بذرة حاس </p> \ No newline at end of file
diff --git a/tests/misc/bidi.html b/tests/misc/bidi.html
index e7759f1..8f94062 100644
--- a/tests/misc/bidi.html
+++ b/tests/misc/bidi.html
@@ -17,13 +17,10 @@
<p>تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.</p>
<h2>أمثلة</h2>
<p>مثال Hello World!</p>
-<pre>
- <code>print "Hello World!"
-</code>
-</pre>
+<pre><code>print "Hello World!"
+</code></pre>
<p>مثال لاستخراج المضروب Factorial :</p>
-<pre>
- <code>num = 1
+<pre><code>num = 1
x = raw_input('Insert the number please ')
x = int(x)
@@ -35,8 +32,7 @@ else:
x = x-1
print num
-</code>
-</pre>
+</code></pre>
<h2>وصلات خارجية</h2>
<ul>
<li>
@@ -47,5 +43,4 @@ else:
<p>
<strong>Недвард «Нед» Фландерс</strong> (Nedward «Ned» Flanders) — вымышленный персонаж мультсериала «[Симпсоны][]», озвученный Гарри Ширером. Он и его семья живут по соседству от семьи Симпсонов. Набожный христианин, Нед является одним из столпов морали Спрингфилда. В эпизоде «Alone Again, Natura-Diddily» он овдовел, его жена Мод погибла в результате несчастного случая. </p>
<p>Нед был одним из первых персонажей в мультсериале, который не был членом семьи Симпсонов. Начиная с первых серий, он регулярно появляется в «Симпсонах». Считается, что Нед Фландерс был назван в честь улицы <em>Northeast Flanders St.</em> в <a href="http://www.portland.gov">Портленде</a>, Орегон, родном городе создателя мультсериала Мэтта Грейнинга]]. Надпись на указателе улицы <em>NE Flanders St.</em> хулиганы часто исправляли на <em>NED Flanders St.</em>
-</p>
-
+</p> \ No newline at end of file
diff --git a/tests/misc/blockquote.html b/tests/misc/blockquote.html
index 429c6d0..7268578 100644
--- a/tests/misc/blockquote.html
+++ b/tests/misc/blockquote.html
@@ -12,14 +12,11 @@
<p>baz</p>
<p> &gt; this has three spaces so its a paragraph.</p>
<p>blah</p>
-<pre>
- <code>&gt; this one had four so it's a code block.
-</code>
-</pre>
+<pre><code>&gt; this one had four so it's a code block.
+</code></pre>
<blockquote>
<blockquote>
<p>this nested blockquote has 0 on level one and 3 (one after the first <code>&gt;</code> + 2 more) on level 2.</p>
</blockquote>
<p> &gt; and this has 4 on level 2 - another code block.</p>
-</blockquote>
-
+</blockquote> \ No newline at end of file
diff --git a/tests/misc/br.html b/tests/misc/br.html
index 52b4796..08563a5 100644
--- a/tests/misc/br.html
+++ b/tests/misc/br.html
@@ -1,12 +1,10 @@
<p>Output:</p>
-<pre>
-<code>&lt;p&gt;Some of these words &lt;em&gt;are emphasized&lt;/em&gt;.
+<pre><code>&lt;p&gt;Some of these words &lt;em&gt;are emphasized&lt;/em&gt;.
Some of these words &lt;em&gt;are emphasized also&lt;/em&gt;.&lt;/p&gt;
&lt;p&gt;Use two asterisks for &lt;strong&gt;strong emphasis&lt;/strong&gt;.
Or, if you prefer, &lt;strong&gt;use two underscores instead&lt;/strong&gt;.&lt;/p&gt;
-</code>
-</pre>
+</code></pre>
<h2>Lists</h2>
<p>Unordered (bulleted) lists use asterisks, pluses, and hyphens (<code>*</code>,
<code>+</code>, and <code>-</code>) as list markers. These three markers are
diff --git a/tests/misc/code-first-line.html b/tests/misc/code-first-line.html
index 177463f..1fb0b7c 100644
--- a/tests/misc/code-first-line.html
+++ b/tests/misc/code-first-line.html
@@ -1,4 +1,2 @@
-<pre>
-<code>print "This is a code block."
-</code>
-</pre> \ No newline at end of file
+<pre><code>print "This is a code block."
+</code></pre> \ No newline at end of file
diff --git a/tests/misc/multi-test.html b/tests/misc/multi-test.html
index 1fc7bdb..552852d 100644
--- a/tests/misc/multi-test.html
+++ b/tests/misc/multi-test.html
@@ -16,9 +16,6 @@ Let's continue.</p>
<p> [^1]: Here is the text of the footnote
continued on several lines.
some more of the footnote, etc.</p>
-<pre>
- <code>Actually, another paragraph too.
-</code>
-</pre>
-<p>And then there is a little bit of text.</p>
-
+<pre><code>Actually, another paragraph too.
+</code></pre>
+<p>And then there is a little bit of text.</p> \ No newline at end of file
diff --git a/tests/misc/some-test.html b/tests/misc/some-test.html
index 54a3e23..e43cb94 100644
--- a/tests/misc/some-test.html
+++ b/tests/misc/some-test.html
@@ -1,72 +1,70 @@
<hr />
<ul>
-<li>
-<p>as if</p>
-</li>
-<li>
-<p>as if2</p>
-</li>
+ <li>
+ <p>as if</p>
+ </li>
+ <li>
+ <p>as if2</p>
+ </li>
</ul>
<hr />
<ul>
-<li>
-<p>as if</p>
-</li>
-<li>
-<p>as if2</p>
-</li>
+ <li>
+ <p>as if</p>
+ </li>
+ <li>
+ <p>as if2</p>
+ </li>
</ul>
<hr />
<ul>
-<li>as if
+ <li>as if
non_code</li>
-<li>as if2</li>
+ <li>as if2</li>
</ul>
<p>Markdown</p>
<ul>
-<li>
-<p>Python
+ <li>
+ <p>Python
is ok</p>
-<ul>
-<li>Therefore i am</li>
-</ul>
-</li>
-<li>
-<p>Perl sucks
+ <ul>
+ <li>Therefore i am</li>
+ </ul>
+ </li>
+ <li>
+ <p>Perl sucks
big time</p>
-<ul>
-<li>But that's
+ <ul>
+ <li>But that's
ok</li>
-</ul>
-</li>
-<li>
-<p>Python is
+ </ul>
+ </li>
+ <li>
+ <p>Python is
ok
Or not?</p>
-</li>
+ </li>
</ul>
<p>Here is a normal paragraph</p>
<ol>
-<li>
-<p>Another list
+ <li>
+ <p>Another list
with a bunch of items</p>
-</li>
-<li>
-<p>Mostly fruits</p>
-<ol>
-<li>Apple</li>
-<li>Pare</li>
-</ol>
-</li>
+ </li>
+ <li>
+ <p>Mostly fruits</p>
+ <ol>
+ <li>Apple</li>
+ <li>Pare</li>
+ </ol>
+ </li>
</ol>
<p>asdfasdfasd</p>
-<pre>
-<code># This is a code example
+<pre><code># This is a code example
import stuff
Another code example
* Lists and similar stuff
&gt; Should be ignored
-</code>
-</pre>
+</code></pre> \ No newline at end of file