Skip to content

Commit 1ffaa97

Browse files
authored
Merge pull request #1621 from apiraino/fix/list-indentation
WG-prioritization: Cosmetic fix, remove redundant empty space
2 parents 178ca79 + 20e05c3 commit 1ffaa97

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

templates/_issues.tt

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
{% import "_issue.tt" as issue %}
22

33
{% macro render(issues, indent="", branch="", with_age=false, empty="No issues this time.") %}
4+
{#- If "branch" is not empty add a trailing space but no newlines before or after -#}
5+
{%- if branch -%}
6+
{%- set branch = branch ~ " " -%}
7+
{%- endif -%}
48
{%- for issue in issues %}
5-
{{indent}}- {{ branch }} {{issue::render(issue=issue, with_age=with_age)}}{% else %}
9+
{{indent}}- {{ branch }}{{issue::render(issue=issue, with_age=with_age)}}{% else %}
610
{{indent}}- {{empty}}{% endfor -%}
711
{% endmacro %}

0 commit comments

Comments
 (0)