diff --git a/cloudformation_docs/core.py b/cloudformation_docs/core.py index 778dc06..48cccac 100644 --- a/cloudformation_docs/core.py +++ b/cloudformation_docs/core.py @@ -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 @@ -96,8 +96,8 @@ def add_breaks(text): |------------------|--------| {% for resource in resources %} | {{ resource }} | {{ resources[resource].Type }} | -{% endfor %} -{% endblock %} +{%- endfor %} +{%- endblock %} {% block outputs %} ### Outputs @@ -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 %} """