[diff_branches] Handle empty values in RST tables

Change-Id: I05eea27a9db6f3277f2f871ab58ce32cb9da2a87
This commit is contained in:
Gauvain Pocentek 2015-12-10 09:50:35 +01:00
parent bc1b26e7a8
commit 00e4f6e3d5
1 changed files with 9 additions and 1 deletions

View File

@ -29,8 +29,16 @@ New, updated, and deprecated options in {{ release }} for {{ codename }}
- New default value
{% for cells in new_defaults %}
* - ``{{ cells[0] }}``
{% if cells[1] is equalto '' %}
-
{% else %}
- ``{{ cells[1] }}``
- ``{{ cells[2]|default(' ', true) }}``
{% endif %}
{% if cells[2] is equalto '' %}
-
{% else %}
- ``{{ cells[2] }}``
{% endif %}
{% endfor %}
{% endif %}