Add more TRAILING_PUNCTUATION to work with YAML.

Fixes #1517
This commit is contained in:
Miro Hrončok 2014-04-09 23:35:41 +02:00
parent b0ba8d61ec
commit a23059b6f7

View File

@ -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+)')