You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 29, 2023. It is now read-only.
On line 444 of write.go, e.toc.addSubSection(relativePath, index, section.xhtml.Title(), relativeSubPath)
should be e.toc.addSubSection(relativePath, index, child.xhtml.Title(), relativeSubPath)
or else the title of all child sections displayed on TOC would be the same with their parent
Since you've already figured out the fix, (similarly to #59) if you're interested in submitting a pull request, let me know. Otherwise I can take a look.
On line 444 of
write.go
,e.toc.addSubSection(relativePath, index, section.xhtml.Title(), relativeSubPath)
should be
e.toc.addSubSection(relativePath, index, child.xhtml.Title(), relativeSubPath)
or else the title of all child sections displayed on TOC would be the same with their parent
https://github.com/bmaupin/go-epub/blob/main/write.go#L444
The text was updated successfully, but these errors were encountered: