- Timestamp:
- 26/10/04 13:02:15 (8 years ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
airspeed.py (modified) (1 diff)
-
airspeed_test.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/airspeed.py
r33 r36 190 190 191 191 class Text(_Element): 192 PLAIN = re.compile(r'((?:[^\\\$#] |\\[\$#])+|\$[^!\{a-z0-9_]|\$$|\\.)(.*)$', re.S + re.I)192 PLAIN = re.compile(r'((?:[^\\\$#]+|\\[\$#])+|\$[^!\{a-z0-9_]|\$$|\\.)(.*)$', re.S + re.I) 193 193 ESCAPED_CHAR = re.compile(r'\\([\\\$#])') 194 194 -
trunk/airspeed_test.py
r35 r36 411 411 412 412 def test_large_areas_of_text_handled_without_error(self): 413 text = "qwerty uiop asdfgh jkl zxcvbnm. 1234" 414 for count in range(1,20): 415 text = text + text 416 template = airspeed.Template(text) 413 text = "qwerty uiop asdfgh jkl zxcvbnm. 1234" * 300 414 template = airspeed.Template(text) 417 415 self.assertEquals(text, template.merge({})) 418 416
