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/misc/arabic.html | 15 +++----- tests/misc/bidi.html | 15 +++----- tests/misc/blockquote.html | 9 ++--- tests/misc/br.html | 6 +-- tests/misc/code-first-line.html | 6 +-- tests/misc/multi-test.html | 9 ++--- tests/misc/some-test.html | 84 ++++++++++++++++++++--------------------- 7 files changed, 61 insertions(+), 83 deletions(-) (limited to 'tests/misc') 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 @@

تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.

أمثلة

مثال Hello World!

-
-  print "Hello World!"
-
-
+
print "Hello World!"
+

مثال لاستخراج المضروب Factorial :

-
-  num = 1
+
num = 1
 x = raw_input('Insert the number please ')
 x = int(x)
 
@@ -23,13 +20,11 @@ else:
   x = x-1
 
  print num
-
-
+

وصلات خارجية

-

بذرة حاس

- +

بذرة حاس

\ 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 @@

تتميز بايثون بمجتمعها النشط ، كما أن لها الكثير من المكتبات البرمجية ذات الأغراض الخاصة والتي برمجها أشخاص من مجتمع هذه اللغة ، مثلاً مكتبة PyGame التي توفر مجموعه من الوظائف من اجل برمجة الالعاب. ويمكن لبايثون التعامل مع العديد من أنواع قواعد البيانات مثل MySQL وغيره.

أمثلة

مثال Hello World!

-
-  print "Hello World!"
-
-
+
print "Hello World!"
+

مثال لاستخراج المضروب Factorial :

-
-  num = 1
+
num = 1
 x = raw_input('Insert the number please ')
 x = int(x)
 
@@ -35,8 +32,7 @@ else:
   x = x-1
 
  print num
-
-
+

وصلات خارجية