Skip to content

Commit

Permalink
remove whitespace created by endfor/endblock
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesmelville-gds authored Jun 6, 2023
1 parent b4851df commit 5f51259
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions cloudformation_docs/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@ def add_breaks(text):
| {{ parameter }} | {{ parameters[parameter].Type }} | {% if parameters[parameter].Default %}{{ parameters[parameter].Default}}{% endif %} | {% if parameters[parameter].Description %}{{ add_breaks(parameters[parameter].Description) }}{% endif %} |{{ "
" if not loop.last }}
{%- endfor %}
{% endblock %}
{%- endblock %}
{% block resources %}
### Resources
Expand All @@ -96,8 +96,8 @@ def add_breaks(text):
|------------------|--------|
{% for resource in resources %}
| {{ resource }} | {{ resources[resource].Type }} |
{% endfor %}
{% endblock %}
{%- endfor %}
{%- endblock %}
{% block outputs %}
### Outputs
Expand All @@ -106,8 +106,8 @@ def add_breaks(text):
|------------------|---------------|
{% for output in outputs %}
| {{ output }} | {% if outputs[output].Description %}{{ add_breaks(outputs[output].Description) }}{% endif %} |
{% endfor %}
{% endblock %}
{%- endfor %}
{%- endblock %}
"""


Expand Down

0 comments on commit 5f51259

Please sign in to comment.