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
|
@ -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…
Reference in New Issue