diff --git a/QuestPDF.Examples/TableBenchmark.cs b/QuestPDF.Examples/TableBenchmark.cs index 2d61355..9cba9f3 100644 --- a/QuestPDF.Examples/TableBenchmark.cs +++ b/QuestPDF.Examples/TableBenchmark.cs @@ -16,7 +16,7 @@ namespace QuestPDF.Examples .ProducePdf() .PageSize(PageSizes.A4) .ShowResults() - .MaxPages(20_000) + .MaxPages(10_000) .EnableCaching(true) .EnableDebugging(false) .Render(container => @@ -27,7 +27,7 @@ namespace QuestPDF.Examples .Border(1) .Table(table => { - const int numberOfRows = 250_000; + const int numberOfRows = 100_000; const int numberOfColumns = 10; table.ColumnsDefinition(columns => diff --git a/QuestPDF.Examples/TextExamples.cs b/QuestPDF.Examples/TextExamples.cs index 1b26a24..52f1aa6 100644 --- a/QuestPDF.Examples/TextExamples.cs +++ b/QuestPDF.Examples/TextExamples.cs @@ -397,7 +397,7 @@ namespace QuestPDF.Examples text.DefaultTextStyle(x => x.BackgroundColor(Colors.Red.Lighten3).FontSize(24)); text.Span(" " + Placeholders.LoremIpsum()); - text.Span(" 0123456789012345678901234567890123456789012345678901234567890123456789 ").WrapAnywhere(); + text.Span(" 012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789012345678901234567890123456789 ").WrapAnywhere(); }); }); }); diff --git a/QuestPDF/Elements/Text/Items/TextBlockSpan.cs b/QuestPDF/Elements/Text/Items/TextBlockSpan.cs index 8e5af10..543c29c 100644 --- a/QuestPDF/Elements/Text/Items/TextBlockSpan.cs +++ b/QuestPDF/Elements/Text/Items/TextBlockSpan.cs @@ -119,7 +119,7 @@ namespace QuestPDF.Elements.Text.Items // there is no available space to wrap text // if the item is first within the line, perform safe mode and chop the word // otherwise, move the item into the next line - return isFirstElementInLine ? (textLength, textLength + 1) : null; + return isFirstElementInLine ? (textLength, textLength) : null; } public virtual void Draw(TextDrawingRequest request)