Fix more parser failures (#10)

* stabilize section parsing, now seems to read all ebooks I tested with
* refactored Open() into smaller funcs
* bump version
This commit is contained in:
T.v.Dein
2025-10-20 18:54:49 +00:00
committed by GitHub
parent cb671b7401
commit f524083210
4 changed files with 144 additions and 41 deletions

View File

@@ -59,8 +59,11 @@ func ViewEpub(conf *Config) (int, error) {
}
if conf.Debug {
repr.Println("book.Files()")
repr.Println(book.Files())
repr.Println(book.Ncx)
repr.Println(book.Sections)
repr.Println(book.Opf.Manifest)
}
buf := strings.Builder{}
@@ -84,7 +87,7 @@ func ViewEpub(conf *Config) (int, error) {
return fmt.Println(buf.String())
}
if conf.Debug {
if conf.Debug || conf.XML {
return 0, nil
}