diff --git a/anonstream/__init__.py b/anonstream/__init__.py index 440c878..2fcbd73 100644 --- a/anonstream/__init__.py +++ b/anonstream/__init__.py @@ -20,6 +20,10 @@ def create_app(config_file): print('Broadcaster password:', auth_password) app = Quart('anonstream') + app.jinja_options.update({ + 'trim_blocks': True, + 'lstrip_blocks': True, + }) app.config.update({ 'SECRET_KEY': config['secret_key'].encode(), 'AUTH_USERNAME': config['auth']['username'], diff --git a/anonstream/templates/nojs_chat.html b/anonstream/templates/nojs_chat.html index 1d841b4..5b53681 100644 --- a/anonstream/templates/nojs_chat.html +++ b/anonstream/templates/nojs_chat.html @@ -136,7 +136,21 @@ {% for message in messages | reverse %}
{% endfor %}