#17576: Enclosing quotation marks for urlize.  (Or make urlize easier to 
override)
---------------------------------+-------------------------
     Reporter:  tomchristie      |      Owner:  tomchristie
         Type:  Bug              |     Status:  new
    Component:  Template system  |    Version:  1.3
     Severity:  Normal           |   Keywords:
 Triage Stage:  Unreviewed       |  Has patch:  0
Easy pickings:  0                |      UI/UX:  0
---------------------------------+-------------------------
 urlize currently allows enclosing brackets.  It'd be good if it also
 allowed enclosing quotation marks. (eg. when calling urlize on JSON
 output.)

 Two possible options:

 1. Add single and double quote pairs to ` WRAPPING_PUNCTUATION` at
 https://github.com/django/django/blob/master/django/utils/html.py#L15
 2. Add wrapping_punctation=WRAPPING_PUNCTUATION,
 trailing_punctuation=TRAILING_PUNCTUATiON arguments to `urlize` to make it
 possible to override the defaults.

 I think either would be reasonable, and both trivial changes.

-- 
Ticket URL: <https://code.djangoproject.com/ticket/17576>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

-- 
You received this message because you are subscribed to the Google Groups 
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to