Commit 8b661477 authored by Sli's avatar Sli
Browse files

Fix error with \r added by jinja

parent 9ffc11bd
Pipeline #892 failed with stage
in 55 seconds
......@@ -10,3 +10,5 @@ data/
/static/
sith/settings_custom.py
sith/whoosh_index/
lextab*.py
parsetab*.py
......@@ -51,6 +51,8 @@ Il y'a aussi des MaKrons'''
def markdown(text, escape=True, **kwargs):
if text != '':
# Avoid errors from jinja
text = text.replace('\r', '')
return block.blockParser(text)
else:
return ''
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment