diff options
| author | Adrian Holovaty <adrian@holovaty.com> | 2005-08-01 21:29:52 +0000 |
|---|---|---|
| committer | Adrian Holovaty <adrian@holovaty.com> | 2005-08-01 21:29:52 +0000 |
| commit | e0c3dd3318f6f4895554521c6bf69676635b1937 (patch) | |
| tree | b86183c86bdfd4d7225f58c70798fc7f97dc6dc8 /django/utils/text.py | |
| parent | 006e9e789baabdf3c5077e2ab39747f217ddf659 (diff) | |
Refactored meta.py -- created a django.core.meta package, with init.py and fields.py
git-svn-id: http://code.djangoproject.com/svn/django/trunk@378 bcc190cf-cafb-0310-a4f2-bffc1f526a37
Diffstat (limited to 'django/utils/text.py')
| -rw-r--r-- | django/utils/text.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/django/utils/text.py b/django/utils/text.py index a0d106bb31..d8b2e16e82 100644 --- a/django/utils/text.py +++ b/django/utils/text.py @@ -1,5 +1,8 @@ import re +# Capitalizes the first letter of a string. +capfirst = lambda x: x and x[0].upper() + x[1:] + def wrap(text, width): """ A word-wrap function that preserves existing line breaks and most spaces in |
