From 82f07d113f1ef2c3e2081b4d0952cbd5043ec049 Mon Sep 17 00:00:00 2001 From: TakenPt Date: Sun, 25 Feb 2024 11:40:13 +0900 Subject: [PATCH] =?UTF-8?q?=E3=80=8C=E3=80=8D=E3=81=A7=E3=81=AE=E5=8C=BA?= =?UTF-8?q?=E5=88=87=E3=82=8A=E3=82=92=E8=BF=BD=E5=8A=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Epub/KoeBook.Epub/ScrapingNarou.cs | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/Epub/KoeBook.Epub/ScrapingNarou.cs b/Epub/KoeBook.Epub/ScrapingNarou.cs index 58a4277..8b0d186 100644 --- a/Epub/KoeBook.Epub/ScrapingNarou.cs +++ b/Epub/KoeBook.Epub/ScrapingNarou.cs @@ -192,7 +192,10 @@ private async Task ReadPageAsync(string url,bool isRens { if (!string.IsNullOrWhiteSpace(item.InnerHtml)) { - section.Elements.Add(new Paragraph() { Text = item.InnerHtml }); + foreach (var split in SplitBrace(item.InnerHtml)) + { + section.Elements.Add(new Paragraph() { Text = split }); + } } } else if (item.ChildElementCount == 1) @@ -234,7 +237,10 @@ private async Task ReadPageAsync(string url,bool isRens { if (!string.IsNullOrWhiteSpace(item.InnerHtml)) { - section.Elements.Add(new Paragraph() { Text = item.InnerHtml }); + foreach (var split in SplitBrace(item.InnerHtml)) + { + section.Elements.Add(new Paragraph() { Text = split }); + } } } else if (item.Children[0] is not IHtmlBreakRowElement) @@ -256,7 +262,10 @@ private async Task ReadPageAsync(string url,bool isRens { if (!string.IsNullOrWhiteSpace(item.InnerHtml)) { - section.Elements.Add(new Paragraph() { Text = item.InnerHtml }); + foreach (var split in SplitBrace(item.InnerHtml)) + { + section.Elements.Add(new Paragraph() { Text = split }); + } } } else