From 14a67f676bcb75a429012ad101c3e3814b772423 Mon Sep 17 00:00:00 2001
From: Corbin Bartsch <me@cbarts.net>
Date: Sat, 28 Oct 2023 15:17:05 -0400
Subject: [PATCH] Insert newline before fragment or image

---
 templates/docker-compose.yml.j2 | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/templates/docker-compose.yml.j2 b/templates/docker-compose.yml.j2
index 6bb89c5..e2156c6 100644
--- a/templates/docker-compose.yml.j2
+++ b/templates/docker-compose.yml.j2
@@ -3,8 +3,8 @@
 services:
 {% for container in containers %}
 {% if container.active %}
-  {{ container.service_name }}:{% if container.anchor is defined %} &{{ container.anchor }}
-{% endif %}
+  {{ container.service_name }}:{% if container.anchor is defined %} &{{ container.anchor }}{% endif %}
+
 {% if container.fragment is defined %}
     <<: *{{ container.fragment }}
 {% else %}