summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian Holovaty <adrian@holovaty.com>2006-03-02 05:53:58 +0000
committerAdrian Holovaty <adrian@holovaty.com>2006-03-02 05:53:58 +0000
commite4b48a8b92c4a1da3904257b40c010682d8a6852 (patch)
tree616adbd4ea5fa9805ba9834773f982326d9ff718
parente72a6b194d87fe28314b7fcea690b8c75f16343f (diff)
Fixed #1058 -- Fixed typo in wordwrap filter documentation. Thanks, kieranholland.com
git-svn-id: http://code.djangoproject.com/svn/django/trunk@2471 bcc190cf-cafb-0310-a4f2-bffc1f526a37
-rw-r--r--django/core/template/defaultfilters.py2
-rw-r--r--docs/templates.txt2
2 files changed, 2 insertions, 2 deletions
diff --git a/django/core/template/defaultfilters.py b/django/core/template/defaultfilters.py
index 73394ead67..b82d54a31c 100644
--- a/django/core/template/defaultfilters.py
+++ b/django/core/template/defaultfilters.py
@@ -133,7 +133,7 @@ def wordwrap(value, arg):
"""
Wraps words at specified line length
- Argument: number of words to wrap the text at.
+ Argument: number of characters at which to wrap the text
"""
from django.utils.text import wrap
return wrap(str(value), int(arg))
diff --git a/docs/templates.txt b/docs/templates.txt
index 66e1943f23..636132a5aa 100644
--- a/docs/templates.txt
+++ b/docs/templates.txt
@@ -1071,7 +1071,7 @@ wordwrap
Wraps words at specified line length.
-**Argument:** number of words at which to wrap the text
+**Argument:** number of characters at which to wrap the text
yesno
~~~~~