From b859d92bd7426c2df0a15490152e26a59680b19d Mon Sep 17 00:00:00 2001 From: Aeroblast <15964528+Aeroblast@users.noreply.github.com> Date: Sat, 23 Nov 2019 13:40:51 +0800 Subject: [PATCH] Update EpubBuilder.cs --- src/EpubBuilder.cs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/EpubBuilder.cs b/src/EpubBuilder.cs index 364fbcc..bc52a66 100644 --- a/src/EpubBuilder.cs +++ b/src/EpubBuilder.cs @@ -325,10 +325,8 @@ void CreateOPF() item.SetAttribute("media-type", "application/xhtml+xml"); mani_root.AppendChild(item); i++; - if (i >= xhtmls.Count) - break; } - if (azw3.resc.spine.FirstChild.ChildNodes.Count > xhtmls.Count) Log.log("[Warn] Missing Parts. Ignore if this is a book sample."); + if (i> xhtmls.Count) Log.log("[Warn] Missing Parts. Ignore if this is a book sample."); if (i < xhtmls.Count) { Log.log("[Warn]Not all xhtmls are refered in spine.");