Changeset 4753
- Timestamp:
- 03/20/07 06:07:52 (1 year ago)
- Files:
-
- django/trunk/django/utils/text.py (modified) (1 diff)
- django/trunk/tests/regressiontests/defaultfilters/tests.py (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/utils/text.py
r4468 r4753 18 18 for word in it: 19 19 if "\n" in word: 20 lines = word.split lines()20 lines = word.split('\n') 21 21 else: 22 22 lines = (word,) django/trunk/tests/regressiontests/defaultfilters/tests.py
r4558 r4753 134 134 "this is a long\nparagraph of\ntext that\nreally needs\nto be wrapped\nI'm afraid" 135 135 136 >>> wordwrap('this is a short paragraph of text.\n But this line should be indented',14) 137 'this is a\nshort\nparagraph of\ntext.\n But this\nline should be\nindented' 138 139 >>> wordwrap('this is a short paragraph of text.\n But this line should be indented',15) 140 'this is a short\nparagraph of\ntext.\n But this line\nshould be\nindented' 141 136 142 >>> ljust('test', 10) 137 143 'test '
