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();