Hotfix mystérieux (print cassé ?)

This commit is contained in:
Robin Champenois 2017-07-01 18:45:51 +02:00
parent 686999b97d
commit a47b9c7506

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