From 99acb25bca5831aa7812d0e473972132ee835cf1 Mon Sep 17 00:00:00 2001 From: "Adam R. Grey" Date: Thu, 28 Oct 2021 09:35:04 -0400 Subject: [PATCH] format better for markdown --- ShowHandler.cs | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/ShowHandler.cs b/ShowHandler.cs index 18d30a3..89ea879 100644 --- a/ShowHandler.cs +++ b/ShowHandler.cs @@ -74,11 +74,17 @@ namespace director { var text = new StringBuilder(); text.AppendLine($"# {todo.Occurrence._event.Summary}"); + text.AppendLine(); + ProcessionLine prevLine = null; foreach (var line in todo.Configuration.checklist) { if (line.type != LineType.text) { + if(prevLine != null && prevLine.type == LineType.text) + { + text.AppendLine(); + } text.Append("* [ ] "); } else @@ -86,6 +92,8 @@ namespace director text.AppendLine(); } text.AppendLine($"{line.description}"); + + prevLine = line; } File.WriteAllText(checklistFilename, text.ToString()); checklistSync();