diff --git a/src/QuestPDF.Markdown/MarkdownRenderer.cs b/src/QuestPDF.Markdown/MarkdownRenderer.cs index 603b4d0..ad69d0c 100644 --- a/src/QuestPDF.Markdown/MarkdownRenderer.cs +++ b/src/QuestPDF.Markdown/MarkdownRenderer.cs @@ -309,7 +309,8 @@ private void ProcessLeafInline(LeafInline inline, TextDescriptor text) break; case LineBreakInline lineBreak: // Only add a line break within a paragraph if trailing spaces or a backslash are used. - if(lineBreak.IsBackslash || lineBreak.IsHard) text.Span("\n"); + if (lineBreak.IsBackslash || lineBreak.IsHard) text.Span("\n"); + else text.Span(" "); break; case TaskList task: text.Span(task.Checked ? _options.TaskListCheckedGlyph : _options.TaskListUncheckedGlyph) diff --git a/src/QuestPDF.Markdown/QuestPDF.Markdown.csproj b/src/QuestPDF.Markdown/QuestPDF.Markdown.csproj index 1be4187..472c202 100644 --- a/src/QuestPDF.Markdown/QuestPDF.Markdown.csproj +++ b/src/QuestPDF.Markdown/QuestPDF.Markdown.csproj @@ -21,7 +21,7 @@ - + diff --git a/tests/QuestPDF.Markdown.Tests/test.pdf b/tests/QuestPDF.Markdown.Tests/test.pdf index 299a289..0582e35 100644 Binary files a/tests/QuestPDF.Markdown.Tests/test.pdf and b/tests/QuestPDF.Markdown.Tests/test.pdf differ