From fba79f07a348b70155b577bb27bfb4e984c0847f Mon Sep 17 00:00:00 2001 From: matejcik Date: Tue, 13 Jun 2023 16:18:47 +0200 Subject: [PATCH] docs: update towncrier template --- tools/towncrier.template.md | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/tools/towncrier.template.md b/tools/towncrier.template.md index 2a5c58a02..a8cdedbc0 100644 --- a/tools/towncrier.template.md +++ b/tools/towncrier.template.md @@ -1,15 +1,13 @@ - -## [{{ versiondata.version }}] ({{versiondata.date}}) {% for section, _ in sections.items() %} {% if section %}{{section}}{% endif -%} {% if sections[section] %} {% for category, val in definitions.items() if category in sections[section] %} - ### {{ definitions[category]['name'] }} {% if definitions[category]['showcontent'] %} {% for text, values in sections[section][category].items() %} -- {{ text }} {{ values|reject("eq", "[#noissue]")|join(', ') }} +- {{ text }}{% if values %} {{ values|join(', ') }}{% endif +%} {% endfor %} + {% endif %} {% endfor %} {% endif %}