summaryrefslogtreecommitdiff
path: root/django/utils/html.py
diff options
context:
space:
mode:
authorRodolfo Carvalho <rhcarvalho@gmail.com>2014-03-02 15:25:53 +0100
committerTim Graham <timograham@gmail.com>2014-03-03 07:38:09 -0500
commit0d912258921a442c48d5787228db2db5af7e8fa5 (patch)
treef6826425de5bca2498c46e5242b870282a34eda2 /django/utils/html.py
parent6acaa5238668593d6d854b28dbfa65e95796585c (diff)
Fixed many typos in comments and docstrings.
Thanks Piotr Kasprzyk for help with the patch.
Diffstat (limited to 'django/utils/html.py')
-rw-r--r--django/utils/html.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/django/utils/html.py b/django/utils/html.py
index a08b62ff5e..aab87df9f7 100644
--- a/django/utils/html.py
+++ b/django/utils/html.py
@@ -213,13 +213,13 @@ def urlize(text, trim_url_limit=None, nofollow=False, autoescape=False):
Links can have trailing punctuation (periods, commas, close-parens) and
leading punctuation (opening parens) and it'll still do the right thing.
- If trim_url_limit is not None, the URLs in link text longer than this limit
- will truncated to trim_url_limit-3 characters and appended with an elipsis.
+ If trim_url_limit is not None, the URLs in the link text longer than this
+ limit will be truncated to trim_url_limit-3 characters and appended with
+ an ellipsis.
- If nofollow is True, the URLs in link text will get a rel="nofollow"
- attribute.
+ If nofollow is True, the links will get a rel="nofollow" attribute.
- If autoescape is True, the link text and URLs will get autoescaped.
+ If autoescape is True, the link text and URLs will be autoescaped.
"""
def trim_url(x, limit=trim_url_limit):
if limit is None or len(x) <= limit: