Skip to content
Snippets Groups Projects
Commit 8075bbbf authored by Thomas Schneider's avatar Thomas Schneider
Browse files

hedgedoc: Use to_nice_json in config.json template

parent ce18a5e7
No related branches found
No related tags found
1 merge request!24Hedgedoc
Pipeline #3285 passed
This commit is part of merge request !24. Comments created here will be created in the context of that merge request.
...@@ -13,10 +13,10 @@ ...@@ -13,10 +13,10 @@
{% if hedgedoc_cookiePolicy is defined %} {% if hedgedoc_cookiePolicy is defined %}
"cookiePolicy": "{{ hedgedoc_cookiePolicy }}", "cookiePolicy": "{{ hedgedoc_cookiePolicy }}",
{% endif %} {% endif %}
"db": {{ hedgedoc_db|to_json }} "db": {{ hedgedoc_db|to_nice_json|indent(8, false) }}
{% if hedgedoc_extra_config is defined -%} {% if hedgedoc_extra_config is defined -%}
{% for k, v in hedgedoc_extra_config.items() %} {% for k, v in hedgedoc_extra_config.items() %}
, "{{ k }}": {{ v|to_json }} , "{{ k }}": {{ v|to_nice_json|indent(8, false) }}
{% endfor %} {% endfor %}
{%- endif %} {%- endif %}
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment