mirror of
https://github.com/django/django.git
synced 2025-09-28 13:04:54 +00:00
Refs #29826 -- Removed unused characters from urlize configuration.
The HTML characters are unused because urlize is meant to be applied to plain text and these characters aren't properly detected (refs #29826). Angle brackets and quotes are present in word_split_re and therefore won't be used in WRAPPING_PUNCTUATION.
This commit is contained in:
parent
70a80ff1be
commit
910548634a
1 changed files with 1 additions and 1 deletions
|
@ -14,7 +14,7 @@ from django.utils.text import normalize_newlines
|
||||||
|
|
||||||
# Configuration for urlize() function.
|
# Configuration for urlize() function.
|
||||||
TRAILING_PUNCTUATION_CHARS = '.,:;!'
|
TRAILING_PUNCTUATION_CHARS = '.,:;!'
|
||||||
WRAPPING_PUNCTUATION = [('(', ')'), ('<', '>'), ('[', ']'), ('<', '>'), ('"', '"'), ('\'', '\'')]
|
WRAPPING_PUNCTUATION = [('(', ')'), ('[', ']')]
|
||||||
|
|
||||||
# List of possible strings used for bullets in bulleted lists.
|
# List of possible strings used for bullets in bulleted lists.
|
||||||
DOTS = ['·', '*', '\u2022', '•', '•', '•']
|
DOTS = ['·', '*', '\u2022', '•', '•', '•']
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue