mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 00:02:37 +02:00
center title
This commit is contained in:
parent
0014ba7d86
commit
aae62f62c3
@ -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{
|
||||
|
Loading…
x
Reference in New Issue
Block a user