From c53f8dead97895cfb9ec4a13ba44cf844b4ea1e7 Mon Sep 17 00:00:00 2001 From: "nicolas.dorier" Date: Thu, 16 Aug 2018 15:10:34 +0900 Subject: [PATCH] Fix bug with generator --- docker-compose-generator/src/Program.cs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/docker-compose-generator/src/Program.cs b/docker-compose-generator/src/Program.cs index 9d0d293..39e45bf 100644 --- a/docker-compose-generator/src/Program.cs +++ b/docker-compose-generator/src/Program.cs @@ -94,7 +94,8 @@ namespace DockerGenerator foreach(var fragment in composition.AdditionalFragments) { - fragments.Add(fragment.Trim()); + if(!string.IsNullOrWhiteSpace(fragment)) + fragments.Add(fragment.Trim()); } var def = new DockerComposeDefinition(name, fragments);