fix space require detection

This commit is contained in:
Celogeek 2023-04-28 17:49:29 +02:00
parent e8613b0cce
commit 1119101f65
Signed by: celogeek
SSH Key Fingerprint: SHA256:njNJLzoLQdbV9PC6ehcruRb0QnEgxABoCYZ+0+aUIYc

View File

@ -185,7 +185,7 @@ func getSpine(o *ContentOptions) []tag {
{"itemref", tagAttrs{"idref": "page_title", "properties": getSpread(false)}, ""},
}
for _, img := range o.Images {
if img.DoublePage && isOnTheRight {
if img.DoublePage && o.ImageOptions.Manga == isOnTheRight {
spine = append(spine, tag{
"itemref",
tagAttrs{"idref": img.SpaceKey(), "properties": getSpread(false) + " layout-blank"},