From aae62f62c31f6f9c04a5899d6d1963563ffee101 Mon Sep 17 00:00:00 2001 From: celogeek <65178+celogeek@users.noreply.github.com> Date: Sat, 22 Apr 2023 21:11:30 +0200 Subject: [PATCH] center title --- internal/epub/epub_content.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/internal/epub/epub_content.go b/internal/epub/epub_content.go index 0afb09d..ab7e754 100644 --- a/internal/epub/epub_content.go +++ b/internal/epub/epub_content.go @@ -95,7 +95,7 @@ func (e *ePub) getManifest(title string, part *epubPart, currentPart, totalPart } func (e *ePub) getSpine(title string, part *epubPart, currentPart, totalPart int) []Tag { - isOnTheRight := true + isOnTheRight := !e.Manga getSpread := func(doublePageNoBlank bool) string { isOnTheRight = !isOnTheRight if doublePageNoBlank { @@ -111,7 +111,7 @@ func (e *ePub) getSpine(title string, part *epubPart, currentPart, totalPart int } spine := []Tag{ - {"itemref", TagAttrs{"idref": "page_title", "properties": getSpread(false)}, ""}, + {"itemref", TagAttrs{"idref": "page_title", "properties": getSpread(true)}, ""}, } for _, img := range part.Images { spine = append(spine, Tag{