Improved book layout in benchmark

This commit is contained in:
Marcin Ziąbek
2021-09-07 13:34:04 +02:00
parent 99f004dd85
commit e2774ef347
2 changed files with 1 additions and 122 deletions
+1 -1
View File
@@ -93,7 +93,7 @@ namespace QuestPDF.Examples
var lineFrom = chapterPointers[index];
var lineTo = chapterPointers[index + 1] - 1;
var lines = book.Skip(lineFrom + 1).Take(lineTo - lineFrom).Where(x => !string.IsNullOrWhiteSpace(x));
var lines = book.Skip(lineFrom + 1).Take(lineTo - lineFrom).Where(x => !string.IsNullOrWhiteSpace(x))
var content = string.Join(Environment.NewLine, lines);
yield return new BookChapter