Browse Source

[diff_branches] Handle empty values in RST tables

Change-Id: I05eea27a9db6f3277f2f871ab58ce32cb9da2a87
changes/40/255740/1
Gauvain Pocentek 5 years ago
parent
commit
00e4f6e3d5
1 changed files with 9 additions and 1 deletions
  1. +9
    -1
      autogenerate_config_docs/templates/changes.rst.j2

+ 9
- 1
autogenerate_config_docs/templates/changes.rst.j2 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 %}


Loading…
Cancel
Save