Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Added quotes to TRAILING_PUNCTUATION used by urlize_quoted_links

  • Loading branch information...
commit 2c0363ddaec22ac54385f7e0c2e1401ed3ff0879 1 parent 5f48b4a
glic3rinu authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  rest_framework/templatetags/rest_framework.py
View
2  rest_framework/templatetags/rest_framework.py
@@ -180,7 +180,7 @@ def add_class(value, css_class):
# Bunch of stuff cloned from urlize
-TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)']
+TRAILING_PUNCTUATION = ['.', ',', ':', ';', '.)', '"', "'"]
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('&lt;', '&gt;'),
('"', '"'), ("'", "'")]
word_split_re = re.compile(r'(\s+)')
Please sign in to comment.
Something went wrong with that request. Please try again.