Merge branch 'master' of git.eleves.ens.fr:champeno/experiENS

This commit is contained in:
Evarin 2017-07-13 21:12:35 +02:00
commit 7f69e44094

View file

@ -18,9 +18,9 @@ def feedback_widget():
@register.filter
def typonazisme(value):
print value
#print value
#return value
value = re.sub(r'(\w)\s*([?!:])', u'\\1\\2', value)
value = re.sub(r'(\w)\s*([,.])', u'\\1\\2 ', value)
value = re.sub(r'(\w)\s*([,.])', u'\\1\\2', value)
value = re.sub(r'([?!:,.])(\w)', u'\\1 \\2', value)
return value