fix multiline default value template

This commit is contained in:
Robert Kaussow 2019-11-06 22:23:44 +01:00
parent a54e370f14
commit 844a05aea3
2 changed files with 8 additions and 0 deletions

View File

@ -1,5 +1,7 @@
* BUGFIX
* add missing default for `role_dir`
* fix value mapping in jinja2 source dict
* add missing exception handling for dict merge
* fix handling of multiline default values in template
* FEATURE
* use explicit marker to convert annotation values to json

View File

@ -14,7 +14,13 @@
#### Default value
```YAML
{% if item.value is mapping %}
{{ item.value | to_nice_yaml(indent=2) }}
{% else %}
{% for ve_line in item.example %}
{{ ve_line }}
{% endfor %}
{% endif %}
```
{% endif %}
{% if item.example is defined and item.example %}