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