mirror of
https://github.com/celogeek/go-comic-converter.git
synced 2025-05-25 08:12:36 +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 {
|
func (e *ePub) getSpine(title string, part *epubPart, currentPart, totalPart int) []Tag {
|
||||||
isOnTheRight := true
|
isOnTheRight := !e.Manga
|
||||||
getSpread := func(doublePageNoBlank bool) string {
|
getSpread := func(doublePageNoBlank bool) string {
|
||||||
isOnTheRight = !isOnTheRight
|
isOnTheRight = !isOnTheRight
|
||||||
if doublePageNoBlank {
|
if doublePageNoBlank {
|
||||||
@ -111,7 +111,7 @@ func (e *ePub) getSpine(title string, part *epubPart, currentPart, totalPart int
|
|||||||
}
|
}
|
||||||
|
|
||||||
spine := []Tag{
|
spine := []Tag{
|
||||||
{"itemref", TagAttrs{"idref": "page_title", "properties": getSpread(false)}, ""},
|
{"itemref", TagAttrs{"idref": "page_title", "properties": getSpread(true)}, ""},
|
||||||
}
|
}
|
||||||
for _, img := range part.Images {
|
for _, img := range part.Images {
|
||||||
spine = append(spine, Tag{
|
spine = append(spine, Tag{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user