Skip to content
This repository has been archived by the owner on Mar 23, 2024. It is now read-only.

Commit

Permalink
「」での区切りを追加
Browse files Browse the repository at this point in the history
  • Loading branch information
TakenPt committed Feb 25, 2024
1 parent f79507c commit 82f07d1
Showing 1 changed file with 12 additions and 3 deletions.
15 changes: 12 additions & 3 deletions Epub/KoeBook.Epub/ScrapingNarou.cs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,10 @@ private async Task<SectionWithChapterTitle> 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)
Expand Down Expand Up @@ -234,7 +237,10 @@ private async Task<SectionWithChapterTitle> 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)
Expand All @@ -256,7 +262,10 @@ private async Task<SectionWithChapterTitle> 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
Expand Down

0 comments on commit 82f07d1

Please sign in to comment.