diff --git a/src/MarkdownSnippets/Processing/IncludeProcessor.cs b/src/MarkdownSnippets/Processing/IncludeProcessor.cs index 606b3c95..88dd8726 100644 --- a/src/MarkdownSnippets/Processing/IncludeProcessor.cs +++ b/src/MarkdownSnippets/Processing/IncludeProcessor.cs @@ -188,7 +188,6 @@ static IEnumerable BuildMultiple(Line line, string? path, Include include, { yield return line.WithCurrent($"{first}"); } - } for (var index = 1; index < include.Lines.Count - 1; index++) @@ -222,8 +221,10 @@ static IEnumerable BuildEmpty(Line line, string? path, Include include, bo { yield return line.WithCurrent($""); } - - yield return line.WithCurrent($""); + else + { + yield return line.WithCurrent($""); + } } static IEnumerable BuildSingle(Line line, string? path, Include include, bool writePath)